Note: I assume you have some prior knowledge on command line and know how to use Google and documentations for simple things.
A good environment fosters learning, so we are going to set one up. This will be all you need to properly code.
Install DevDocs desktop (by Egoist).
In “Preferences”, enable following documentation
In “Offline Data”, make sure to install all the documentation you enabled. It will be around 160 MB of data.
This will be your go-to reference, make sure to create an easily accessible shortcut to use it!
This program is the desktop version of DevDocs.
There is no need anymore to search through MDN, the node.js API, or kangax table/caniuse for example. This collects it all and delivers it in one place in a consistent formatting.
Developers using Apple products may be interested in Dash as a powerful alternative.
If not already done, install Node.js. I prefer the latest version but you can install LTS if you want (v16 “Gallium” as of writing).
If not already done, install a text editor / IDE suited for web development
Last but not least, use a linter with a proper lint config: follow this link.
Congratulations! You are now set to start learning JS in a good environment for your projects.
Your next step is to go to the resources section. Have fun ☺️