Stdle #56 · modern · 2026-08-01
What does this TypeScript snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
const t = [1, 2, 3] as const;const arr = t as unknown as number[];arr[5] = 9;console.log(arr.length, arr[3]);Modern