Global variable
A global variable is a {{glossary("variable")}} that is declared in the {{glossary("global scope")}} in other words, a variable that is visible from all other scopes.
In JavaScript it is a {{glossary("property")}} of the {{glossary("global object")}} .
See also
- Global variable on Wikipedia