← Back to archive

Stdle #179 · erasure · 2026-12-02

What does this TypeScript snippet output?

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

const a = [3, 1, 2] satisfies number[]
console.log(a.sort((x, y) => x - y).join(''))
Type Erasure
4 attempts left

Answer & explanation