Where NOT to var…

Ajaxian posted an article about using var to declare a variable at the top level of your script. The variable is considered to be part of the window’s scope which both pollutes the window object and sets up situations where the variable isn’t accessible unless you refer to it as part of the window object itself.

Commenting has expired for this post.