← Back to archive

Stdle #69 · quirks · 2026-08-08

What does this JavaScript snippet output?

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

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

Answer & explanation