← Back to archive

Stdle #12 · erasure · 2026-06-18

What does this TypeScript snippet output?

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

const data: any = '123'
const num: number = data
console.log(num + 1)
Type Erasure
4 attempts left

Answer & explanation