← Back to archive

Stdle #14 · modern · 2026-06-20

What does this TypeScript snippet output?

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

const pair: [number, number] = [1, 2];
const arr = pair as number[];
arr.push(3);
console.log(pair.length, arr[2]);
Modern
4 attempts left

Answer & explanation