Some people love JavaScript, others hate it. Jeffrey Way is one of those developers that loves JavaScript. He writes that most people who hate JavaScript actually hate the DOM API. But there a few things about JavaScript that drive him nuts, so he’s compiled a list of the Top 10 Things that JavaScript Got Wrong.
Here’s Way’s list:
- The Name. JavaScript is NOT Java
- Null is an Object?
- NaN !== NaN
- Global Variables
- User-Agent Strings Report Mozilla. Ever Wonder Why?
- Scope Inconsistencies
- The Use of Bitwise Operators
- Too Many Falsy/Bottom Values
- It Can’t Do Arithmetic (he notes that he’s 99% teasing with this one)
- Code Styling Isn’t your Choice!
The full article has more detail.
What would you add or subtract from this list?
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.