You must log in or register to comment.
As many people have pointed out already, this happens because JavaScript was rushed. But why do we still use a language whose foundation was built in only ten days(!) for scripting on webpages we build today? Why hasn’t there been a push for web browsers to support other scripting languages (other than maybe Dart)?
There has never been a push because JavaScript works well enough.
Many of its mistakes have been rectified in later specifications.