
A dynamic array in plain words: what capacity is, why push is almost always instant but sometimes copies the entire array, and when you'll actually notice.

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.

What a sparse array is, in plain words: holes instead of elements. Why Array(3).map does nothing, and why the array's length lies to you.

How to chunk an array in JavaScript: a 3-line function, batch processing without 429 errors, a pause between batches, and two traps that freeze your tab.

some vs every in JavaScript: the difference and which to pick. A comparison on five criteria, plus a trap: every on an empty array always returns true.

How to compare two arrays in JavaScript: in order, ignoring order, and with objects inside. Why === is always false and JSON.stringify lies about NaN.

How to shuffle an array in JavaScript fairly: write the Fisher–Yates shuffle step by step, test it in a minute, and see what's wrong with sort and Math.random.

What a Set in JavaScript is, in plain words: a collection without duplicates and an instant has() check. When to pick a Set over an array — and where it quietly fails.

How to group an array of objects by a field in JavaScript: Object.groupBy, Map.groupBy and a fallback reduce. Step by step — from orders by status to spending by month.

filter or find in JavaScript: what each returns, which to pick when, and why if (arr.filter(...)) is always true. A comparison on five criteria and a clear verdict.

Why JavaScript sort orders numbers and words wrong: text comparison, a true/false comparator, and accented letters. How to check each cause and fix it.

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.

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.

slice vs splice in JavaScript: the difference and which to pick. Five criteria side by side, the splice return-value trap, and a safe replacement for React.

How to remove duplicates from an array in JavaScript: a one-line Set for numbers and strings, cleaning case and spaces, and deduping objects by id.

for loop or map in JavaScript: what's the difference and which to pick. A comparison on five criteria, where forEach fits, and the await-inside-map trap.

The array is empty, the screen shows nothing, the console is silent. Three real causes of an empty array — data not there yet, a filter that cut everything, a list nested deeper — and how to check each.

What is an array in plain words: a list that keeps its order. Why counting starts at zero, where the most common beginner bug comes from, and why an empty array matters.

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.