XML Feeds

.

[javascript-dev] Re: Global variables in .js

John Pitcairn cycling74forum at opuslocus.net
Thu Feb 21 13:51:27 MST 2008


Also, from memory, if you declare a top-level variable without "var" in a .js file, it becomes global to all js objects loading that file, ie:

gvar = "check1"; // global to all instances
var avar = "check2" // local to this instance


More information about the javascript-dev mailing list