Did you have tons of C/C++ libraries thrown at you in 100 level courses? Probably not, I'm guessing.
JavaScript is great because it runs in a browser, provides immediate feedback without having to compile/recompile and allows for all the simple flow control concepts mentioned by other posters.