← Back to archive

Stdle #110 · generics · 2026-09-24

What does this TypeScript snippet output?

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

function z(this: object, a: number, b = 5) {}
console.log(z.length)
Generics
4 attempts left

Answer & explanation