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();predict · closures
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();