Hint
Scope chain: inner function looks up through all enclosing scopes until global.
let a = 1;
function outer() {
let b = 2;
function inner() {
let c = 3;
console.log(a, b, c);
}
inner();
}
outer();1 2 3
Explanation: inner can access c (own scope), b (outer's scope via closure), and a (global via scope chain). JS walks up the scope chain until it finds the variable.
Key Insight: Scope chain: inner function looks up through all enclosing scopes until global.