← Back to archive

Stdle #4 · 2026-06-04

What does this log?

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

function make() { let c = 0; return () => ++c; }
const a = make(), b = make();
console.log(a(), a(), b());
Scope
4 attempts left

Answer & explanation