Your question is like asking: Which car is good to have: Apple AirPower or golden knobs for the radio or both?
Neither of your choices are "JavaScript", you might first want to google a definition for the things you want to use. Neither of the choices are useful to a beginner or required to develop with JavaScript.
tl;dr:
I recommend reading The "I Am New To Programming" FAQ. It will help you get started with any programming language, including JavaScript and kinda guides you through your initial questions. Also, programming means a lot of googling for stuff, so you might want to practice that a bit ;)