← Back to archive

Stdle #142 · erasure · 2026-10-26

What does this TypeScript snippet output?

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

const arr = [10, 20]
const v = arr[5]!
console.log(v)
Type Erasure
4 attempts left

Answer & explanation