JavaScript should not be judged as if it was a poor version of the other popular languages - it isn't a Java or a C++ clone.