Common JavaScript “Gotchas”


Continuing on the subject of JavaScript being quirky, this article is a nice summation of many JavaScript properties that confuse developers.

  1. The Global Namespace
  2. Understanding “this”
  3. Know the difference between ECMAScript 3 and ECMAScript 5
  4. Understanding Async
  5. Simple Inheritance in JavaScript
  6. Forgetting to use var in for loops

There’s a lot of great info here that applies even if you’re doing ‘simple’ things while heavily relying on jQuery to do the heavy lifting. JavaScripts interestingness spans the entire spectrum.