
What is a Web Worker in plain words: a second thread for heavy JavaScript, how it talks to the page, why data gets copied, and when you don't need one.

How to detect a touch device on a website: step by step with CSS @media (hover) and (pointer), matchMedia and pointerType — and why ontouchstart gets it wrong.

What Big O notation means in plain words: how to tell how much slower code gets as data grows, and why includes inside a loop is a quiet time bomb.

What a source map is in plain words: how it turns an error in minified code into the right line of your file, and why you shouldn't publish it openly.

What a polyfill is in plain words: how it adds missing functions to a browser, how it differs from transpiling, and when you actually still need one.

How to measure code execution time in JavaScript: step by step with console.time and performance.now, warm-up, median, async code, and why not Date.now.

LRU cache explained simply: how it decides what to evict, why a plain-object cache eats your memory, and how to build an LRU on a JavaScript Map in 15 lines.

How to detect offline in JavaScript: what navigator.onLine really means, the online and offline events, and a fetch check with a timeout.

encodeURI vs encodeURIComponent: which one to use for URL parameters, why & and + break your search, what %2520 means, and why URLSearchParams beats both.

How to detect an element's size change in JavaScript: step by step with ResizeObserver, why window resize doesn't fire, and how to fix the ResizeObserver loop error.

What a JavaScript Proxy is in plain words: how a middleman object intercepts reads and writes, what powers Vue reactivity, and three traps where it breaks.
How to calculate days between two dates in JavaScript without an off-by-one: time of day, time zones, input type=date and Temporal. A ready function plus tests.

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.

input vs change in JavaScript: when each event fires, which one to use for search, sliders and checkboxes — and why React's onChange works differently.

How to capitalize the first letter of a string in JavaScript and CSS: step by step, with empty strings, leading quotes, Turkish i and names like McDonald.

Why identical-looking strings aren't equal in JavaScript: hidden spaces, \r, non-breaking spaces, BOM, two codes for one letter, lookalike letters — and fixes.

What type coercion in JavaScript is, in plain words: why "5" + 2 gives "52" while "5" - 2 gives 3, and how to stop shipping these bugs in your code.

What a mutex is, in plain words: how a lock saves you from double charges and logouts in another tab, and where to get a mutex in JavaScript and in a database.

How to count words in a string in JavaScript: why split(" ") gets spaces and dashes wrong, and how to handle hyphens, Japanese text and emoji. With ready code.

Optional chaining (?.) in plain words: how it stops “Cannot read properties of null”, where it still crashes, and why not to use it everywhere.

What a prototype is in JavaScript: where objects get properties you never added, why a word counter breaks on “constructor”, and why __proto__ is risky.

What a closure is in plain words: a function that remembers the variables from where it was born. And why it makes a React timer show 1 forever.

preventDefault vs stopPropagation in plain words: what each one stops, why AI adds both “just in case”, and how that breaks menus and analytics. Which to pick.

How to pluralize words after numbers in JavaScript: why n === 1 breaks in Russian and Polish, how Intl.PluralRules picks the form, and which numbers to test.

Why a JavaScript regex works every other time: test() with the g flag remembers lastIndex. Three common causes, how to confirm each, and how to fix it.

What a WeakMap is, in plain words: a dictionary that doesn't keep its keys alive. Why a cache built on a plain Map leaks, and when WeakMap is the right fix.

What template literals in JavaScript are: backticks, ${} interpolation, tags like sql`` — and the one mistake that turns a safe query into an SQL injection.

What a Symbol in JavaScript is, in plain words: a key that skips JSON and Object.keys, breaks string concatenation, and is the reason for...of works at all.

localStorage vs sessionStorage: how they differ, how long data lives, why sessionStorage is empty in a new tab but copied when you duplicate one — and which to pick.

How to check if an object is empty in JavaScript: why if (obj) fails, where Object.keys and JSON.stringify lie, and a ready 4-line function that gets it right.

Why big numbers get rounded in JavaScript: an ID from your API arrives ending in zeros. Three causes — JSON.parse, Number() and Excel — and how to fix each.

What is short-circuit evaluation (&& and ||), in plain words: why the second half may never run, and where a lone zero in your React UI comes from.

What is a bitmask, in plain words: many yes/no flags packed into one number. Explained with Discord bot permissions, chmod 755 and a JavaScript trap.

for vs while loop: the difference and which to choose. Compared on five criteria, plus when you need do...while and how to fetch every API page safely.

Why object key order changes in JavaScript: integer keys jump to the front, databases and JSON don't keep order. Three causes, how to check and how to fix.

A higher-order function, explained simply: a function that takes or returns another function. Why map(parseInt) gives NaN and how to read this kind of code.

setTimeout vs requestAnimationFrame: which to use for animation, timers and games. Why animations stutter and speed up on 120 Hz screens — and how to fix it.

How to turn a nested array into a flat one in JavaScript: flat, flatMap and flat(Infinity) step by step. Why arrays remain inside after flat() and how not to lose data.

Why console.log shows the wrong value: one thing collapsed, another expanded, an empty array full of data, or [Object] instead of nested fields. Three causes.

What is a reducer in simple terms: how reduce and useReducer work, why mutating state won't re-render the screen, and why an empty array can crash it.

What is a generator in JavaScript in simple terms: how function* and yield work, why calling one does nothing, and where generators hide in AI streaming.

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.

async or defer: the difference for the script tag and which to pick. A comparison on five criteria, plus the trap: async scripts run in a random order.

What is the event loop in JavaScript, in plain words: why setTimeout(0) waits for promises and why a heavy loop freezes the whole page.

What is memoization, in plain words: a function remembers its answers. Why the cache stays silent when you pass an object, and when it freezes your data.

What is event delegation in JavaScript, in plain words: one handler on the parent instead of a hundred, and why buttons added later stay silent.

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.

Why localStorage loses data after a reload: your code overwrites it, a different port, an object saved without JSON.stringify, the browser wiping it. Fixes.

includes vs indexOf in JavaScript: how they differ, what they return and when to use which. Plus the if (indexOf(...)) bug that makes a check work backwards.

How to pause (sleep) in JavaScript: a setTimeout and await delay, pausing in a loop between requests, and the forEach trap that never waits. With code.

The Maximum call stack size exceeded error in JavaScript: three real causes, including Math.max on a big array and a setter that calls itself. How to find and fix each one.

What an enum is, in plain words: a closed list of allowed values. The bug it catches, why JavaScript has no enum, and what to write instead of enum in TypeScript.

What a stack is, in plain words: a pile where the last thing in is the first thing out. How Ctrl+Z, the Back button and the call stack in your code are built on it.

What a default parameter is, in plain words: the value a function uses when you don't pass one. Two traps — null in JavaScript and a shared list in Python.

How to format numbers and prices in JavaScript: thousands separators, currencies, percentages and '1.2M' with Intl.NumberFormat. Plus why toFixed rounds 1.005 to 1.00.

What an operator is in plain words: plus, remainder, comparison. How operators solve real tasks — and where the trap with negative numbers hides.

What a random number is in code and how Math.random works: why it's pseudo-random, where the Math.round trap hides, and when you need crypto instead.

innerHTML vs textContent: what's the difference and which to use. A five-criteria comparison, how innerHTML opens a hole for foreign code, and where innerText fits.

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.

A click or key press fires twice, or even more? Three real causes of an event firing twice in JavaScript and React — and how to check and fix each one.

What hoisting in JavaScript is, in plain words: why a function works before it's declared, const crashes with an error, and var quietly gives you undefined.

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.

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.

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.

What a pure function is in programming, in plain words: same input, same output, no side effects. Why it matters in React and in tests, with examples.

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.

TypeError: x is not a function — what this JavaScript error means and how to fix it. The three common causes: wrong data type, a made-up method, the import.

What is try catch, in plain words: a safety net for your code. How it works, why you need finally, and why try without await catches nothing.

What is a data type, in plain words: a label that tells a program how to read a value. The main types, how to check them, and where the bugs come from.

for in vs for of in JavaScript, explained simply. Why for in over an array gives "0" and "1" as strings, why for of crashes on an object — and which to pick.

Why this is undefined in JavaScript and where “Cannot read properties of undefined” in a method comes from: a callback, a function inside a method, an arrow.

What an if statement is, in plain words: a fork in the code, “if — else”. Why code checks branches top to bottom and how one wrong order breaks discounts.

What a class is in programming, in plain words: a blueprint for objects. How a class differs from an object, what new does, and why AI writes classes.

How to split one long code file into several: export, import and paths between files, step by step. Plus a prompt so AI does it for you without breaking it.

Function vs method: the difference in plain words. Why Python uses len(x) and not x.len(), what this gives a method, and when to write each one.

Why JavaScript gives you NaN instead of a number: an empty field, text instead of a number, zero divided by zero. How to find the source of NaN and fix it fast.

What a string is, in plain words: text in quotes. Why "2" + "2" gives "22", an emoji counts as two characters, and everything from a form arrives as a string.

What return does in a function, in plain words: the answer a function hands back. Why console.log shows a number but your variable holds undefined.

What a boolean is, in plain words: true or false. Why "false" in quotes counts as true, an empty array does too, and zero counts as false.

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.

How to turn a string into a number in JavaScript: Number, parseInt or parseFloat. Step by step — with empty fields, spaces in "1 200" and a decimal comma.

An infinite loop: the tab froze, the fan is screaming, the server gets thousands of requests. Three real causes — from React useEffect to while — how to check and fix.

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}.

let vs const in JavaScript: what the difference is and which to pick. A criteria breakdown, a one-second rule, and why const doesn't mean "can't change."

How to build a share button with the Web Share API: the phone's native share sheet, a fallback for desktop, and three mistakes that quietly break it.

How to add a copy button to your site: navigator.clipboard in five steps, a “Copied” confirmation for screen readers, and three reasons copying fails.

Tree shaking drops unused code from your build. Here's why it works with some libraries and silently does nothing at all with others.

Code splitting cuts one big JavaScript file into parts that load on demand. Here's how it works, where it pays off, and where cutting actually hurts.

Step by step: how to reduce JavaScript bundle size — measure it, find the heaviest package on a build map, split off what's rarely used, then re-measure.

WebAssembly isn't always faster: the line runs through boundary crossings, not languages. Comparing WebAssembly and JavaScript, with a clear verdict.

A runtime is the environment that executes your code and gives it hands: files, network, output. Why one language can do different things in different places.

A Promise in JavaScript isn't the answer — it's a receipt for one. Why your console prints Promise pending, how await fixes it, and where beginners lose data.

Node.js is how you run JavaScript outside the browser: on a server, in the terminal, anywhere. Here's what Node.js is in plain words, and why you'll need it.

TypeScript is JavaScript that catches your typo before you run it. We compare on entry cost, errors and working with AI — and say plainly what a beginner should take.

Python or JavaScript for a beginner? We compare entry cost, ecosystem, and AI — and give a straight answer on who should pick which, no fluff.