News for hackers. Stuff that matters.
Re:Twitter crashes itself with commas by thedaniel on Tuesday July 17, 2012 @11:52AM (#4256253)
The JS interpreter shares your preference of writing all var declarations at the top - in fact, at interpretation time they will be "hoisted" to the top of the scope. In other words:

  foo()
  var bar = 1;
is actually run as

  var bar;
  foo();
  bar = 1;
Re:Twitter crashes itself with commas by tomjen3 on Tuesday July 17, 2012 @12:37PM (#4256489)
True, and that was part of what I was trying to articulate.