← Back to archive

Stdle #141 · generics · 2026-10-25

What does this TypeScript snippet output?

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

function k(a: number, b = 2, c: number) {}
console.log(k.length)
Generics
4 attempts left

Answer & explanation