Code AnalysisHard 60s
Trace: Closure Factory
What is the output?
Starter code
function makeAdder(x){return y=>x+y}
const a10=makeAdder(10);
const a20=makeAdder(20);
console.log(a10(5)+a20(5))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.