← Back to archive

Stdle #103 · erasure · 2026-09-17

What does this TypeScript snippet output?

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

const f: any = 5
try { f() } catch (e) { console.log((e as Error).constructor.name) }
Type Erasure
4 attempts left

Answer & explanation