← Back to archive

Stdle #115 · quirks · 2026-09-23

What does this JavaScript snippet output?

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

const a = [1, 2];
const r = a.concat([3, 4]);
console.log(a.length, r.length);
Quirks
4 attempts left

Answer & explanation