← Back to archive

Stdle #82 · generics · 2026-08-27

What does this TypeScript snippet output?

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

function m(a: number, b?: number, c?: number) {}
console.log(m.length)
Generics
4 attempts left

Answer & explanation