Eloquent JavaScript, 3rd edition (2018), by Marijn Haverbeke: This free online book is available as a PDF, EPUB or MOBI (Kindle) download. I recommend it highly (as do many others).
I urge you to seek out resources at Mozilla Developer Network (MDN) and NOT at W3schools. Here are some great MDN resources for finding answers about JavaScript:
- JavaScript basics
- JavaScript First Steps (variables, basic math, other basics)
- JavaScript building blocks (functions and more advanced beginner skills)
- Data types and objects (more advanced)
The excellent book series You Don’t Know JS is fully available online to read for free.
These two recently updated Codecademy courses are interactive, hands-on, and really great for beginners:
If you learned jQuery back when it was truly necessary, you might (like me) appreciate this resource for doing all those things using pure vanilla JavaScript instead: plainJS – The Vanilla JavaScript Repository
.