---
title: Global scope
slug: Glossary/Global_scope
tags:
  - CodingScripting
  - Glossary
  - NeedsContent
---
In a programming environment, the _global scope_ is the {{glossary("scope")}} that contains, and is visible in, all other scopes.

In client-side JavaScript, the global scope is generally the web page inside which all the code is being executed.

## See also

- [Introduction to variable scope in JavaScript](/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#variable_scope)
- {{interwiki("wikipedia", "Scope (computer science)", "Scope")}} on Wikipedia
