Skip to content

predict · closures

A function made before the value changed.

Answer before anything runs. Then the machine runs it, and you can step through what it did.

let limit = 10;
const check = () => limit;
limit = 20;
const seen = check();
What does `seen` hold when the program has finished?