← Back to archive

Stdle #7 · 2026-06-13

What does this log?

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

let n = 0
function inc<T = void>(x = ++n) { return x }
console.log(inc(), inc())
Generics
4 attempts left

Answer & explanation