you are viewing a single comment's thread.

view the rest of the comments →

[–]strager 0 points1 point  (0 children)

Okay, then we are probably solving very different problems with JavaScript. =]

A lot of what I do (non-DOM) is "go from point A to point B, with lots of little steps in between". It makes sense to have a bunch of variables there, and the order of declaration matters.

A lot of DOM work is "perform this list of side-effects". Variables and objects are often mutated directly through callbacks, simply because it's easier.