← Back to archive

Stdle #107 · scope · 2026-09-15

What does this JavaScript snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

function build(a) {
return (b) => (c) => [a, b, c];
}
const step = build(1)(2);
console.log(step(3).join(""));
console.log(step(9).join(""));
Scope
2 lines
4 attempts left

Answer & explanation