MDN self-hosted library · e01.org

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.

no runnable cells glossary-definition upstream source

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