← Back to archive

Stdle #138 · erasure · 2026-10-22

What does this TypeScript snippet output?

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

const n = 5
const s = n as unknown as string
console.log(s + 1)
Type Erasure
4 attempts left

Answer & explanation