Global variable
A global variable is a variable that is declared in the global scope in other words, a variable that is visible from all other scopes.
In JavaScript it is a property of the global object.
See also
- Global variable on Wikipedia
A global variable is a variable that is declared in the global scope in other words, a variable that is visible from all other scopes.
In JavaScript it is a property of the global object.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2024 by individual mozilla.org contributors. Content available under a Creative Commons license.