Read "JavaScript: The Definitive Guide" and maybe "Javascript, the good parts" (good advice, but a bit dated).
Proceed to reed guides on modern frameworks like Vue/React (no need to bother with angular). Check out what node has to offer.
10 years ago I would have suggested to read website sources to see how things are done, but nowadays it's akin to browsing jvm bytecode, so do some projects instead