← Back to archive

Stdle #147 · quirks · 2026-10-25

What does this JavaScript snippet output?

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

const a = [3, 1, 2];
const b = a.toSorted();
console.log(a.join(','), b.join(','));
Quirks
4 attempts left

Answer & explanation