Stdle #112 · modern · 2026-09-26
What does this TypeScript snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
const tup: [string, number] = ["a", 1];const [s, ...rest] = tup;console.log(s, rest.length);Modern
Stdle #112 · modern · 2026-09-26
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
const tup: [string, number] = ["a", 1];const [s, ...rest] = tup;console.log(s, rest.length);