I also agree that Javascript is worse. C++ has two excuses for being bad:
- It has to be compatible with C, a language that's multiple decades older than it, and
- It is not garbage collected.
Javascript has neither of those two excuses. People only use it today because of the ubiquity of web programming. In fairness, it did kill off a few other technologies, like Flash and Java applets, but that was more Webkit and Chrome picking it as the winner than anything else.
Maybe these arguments are a bit hand-wavy, but the way I see it, it's like the C of the web programming era.