Common JavaScript Errors:
var makes a difference

The problem

The recommendation

Want to master all the JavaScript gotchas?