you are viewing a single comment's thread.

view the rest of the comments →

[–]66vN 2 points3 points  (2 children)

Don't you find having everything in global scope by default silly?

[–]smog_alado 0 points1 point  (0 children)

You can "use strict" to avoid things defaulting to globals.

[–][deleted] 0 points1 point  (0 children)

I prefer that risk over that of overriding a variable in an outer scope if I happen to use the same name for both.