← Back to archive

Stdle #52 · quirks · 2026-07-22

What does this JavaScript snippet output?

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

const s = 'hello';
try { s[0] = 'H'; } catch {}
console.log(s, s.toUpperCase());
Quirks
4 attempts left

Answer & explanation