News for hackers. Stuff that matters.
Re:How One Missing `var` Ruined our Launch by johnbender on Tuesday November 01, 2011 @01:25AM (#3180759)
Steve Yeggae's js2-mode highlights globals during editing, and it's saved me a good many times.

http://code.google.com/p/js2-mode/

Mind you it won't catch globals declared in chained assignments

eg

    var x = y = 0; // y is defined globally
Re:How One Missing `var` Ruined our Launch by thomblake on Wednesday November 02, 2011 @12:30AM (#3185423)
The fork of js2-mode at https://github.com/mooz/js2-mode will catch that, as will js3-mode.
Re:How One Missing `var` Ruined our Launch by webXL on Tuesday November 01, 2011 @12:13PM (#3182742)
If you're looking for a new IDE, JetBrains WebStorm does this. In the chained assignment, as well.