Code AnalysisIntermediate 50s
Trace: Closure Counter
What is printed?
Starter code
function make() {
let n = 0;
return () => ++n;
}
const c = make();
c();
c();
console.log(c());Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.