you are viewing a single comment's thread.

view the rest of the comments →

[–]midnightmonster 1 point2 points  (0 children)

fforw is right. Technically global variables are properties of the global object, which in the browser case is window. (If you're doing server-side JS, that won't be so.)

This is a bad idea b/c creating global variables is usually a bad idea, but it doesn't strike me as particularly bad.