Jeffrey Way, a JavaScript developer, compiled a list of the Top 10 Things that JavaScript Got Wrong, just for fun.
The list is quite enjoyable and a couple of points are so true.
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 #4, Javascript (actually now called ECMAscript) almost requiring global variables, is the one that strikes with me most.
Followed by #10: JavaScript adding semicolon when it thinks it’s necessary!