# Scope
## CS Concepts — The Codex Coding
**URL:** https://thecodex.expert/coding/concepts/scope/
**Type:** concept | **Confidence:** high | **Last verified:** 2026-06-01

## CANONICAL DEFINITION
Scope is the region of a program's source code within which a given name binding is visible and can be referenced — determined either by the lexical structure of the source text (lexical scope, used by most modern languages) or by the runtime call chain (dynamic scope), with inner scopes able to shadow names from outer scopes.

## REQUIRES
concepts/functions, concepts/variables

## ENABLES
concepts/closures, concepts/modules

*The Codex Coding — thecodex.expert/coding/ — Free forever — Mumbai, India*
