← Back to archive

Stdle #111 · modern · 2026-09-25

What does this TypeScript snippet output?

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

const fruits = ["apple", "pear"] as const;
console.log(fruits[0].toUpperCase(), fruits.length);
Modern
4 attempts left

Answer & explanation