01Chapter 1: What Scope Means in JavaScriptScope is the region of code where a name is visible. JavaScript uses lexical scope, which means visibility depends on where you write a declaration in the source code. Where a function is called has no effect. Once you know which scope a name belongs to, you can predict which value any line of code 2 min read
02Chapter 2: Shadowing Variables in Inner ScopesThis chapter assumes you know basic JavaScript syntax and how to declare variables and functions. It also assumes you have already seen how the scope chain resolves names.1 min read
03Chapter 3: The Temporal Dead ZoneThis chapter assumes you already know how the scope chain resolves names and how var is hoisted with an initial value of undefined. It covers what happens with let, const, and class before their declaration runs, and then how closures, loops, strict mode, and modules depend on those rules.2 min read