Skip to content

Glossary: JavaScript Beyond the Basics

Scope

Also written: scope chain, module scope, function scope, shadowing

The part of the code where a name can be seen: module, function or block. Code looks outward through the scope chain, and an inner name that matches an outer one hides it (shadowing).

Where the book teaches it

Related terms

ClosureTemporal dead zoneBlock scope