1. Glossary
  2. Global variable

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

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /