Tag

#object

6articles
GuidesOct 13, 2026

Why changing one item changes all of them — three causes and fixes

Changed one item and they all changed? Three reasons every array item changes at once: fill, an object reused in a loop, a shared default — and fixes.

6 min read
BasicsSep 28, 2026

What is a Map in JavaScript — and why an object secretly turns your keys into text

What a Map in JavaScript is, in plain words: a dictionary where any value can be a key. How Map differs from an object and from the .map() method — and when to use it.

6 min read
BasicsSep 27, 2026

What is the spread operator (...) in JavaScript — and why the order of three dots matters

The JavaScript spread operator in plain words: what three dots mean in code, how to copy and merge arrays and objects, and where the copy trap hides.

5 min read
BasicsSep 27, 2026

What is destructuring in JavaScript — and what [count, setCount] really means

Destructuring in JavaScript in plain words: pull fields out of objects and arrays in one line, read [count, setCount], and fix the Cannot destructure error.

5 min read
BasicsSep 23, 2026

What is an object in programming — and why two identical objects aren't equal

What an object in programming is, in plain words: a card with labeled fields. How it works, where it shows up in AI-written code, and why {a:1} isn't {a:1}.

5 min read
BasicsSep 22, 2026

Array or object — which one to pick for your data

Array vs object: how they differ and which to pick for your data. A one-sentence rule, a breakdown by criteria, and why searching an array is a thousand times slower.

5 min read