If you are a beginner and looking for an engaging way to learn how to code using JavaScript, I would suggest Coding for Visual Learners (http://www.codingforvisuallearners.com). It makes no assumptions on prior programming knowledge and teaches you the basics of coding using Javascript and p5.js in a very accessible manner. Disclaimer: I am the author of the book
Coding for Visual Learners
1 reader recommends it across 1 discussion