Global variables are in fact properties of the global object. In web pages the global object is window, so you can set and access global variables using the window.variable syntax.
https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Va...
No comments yet.