← Back to archive

Stdle #127 · quirks · 2026-10-05

What does this JavaScript snippet output?

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

const m = new Map([['a', 1], ['b', 2]]);
const o = JSON.stringify(m);
console.log(o, m.size);
Quirks
4 attempts left

Answer & explanation