What Is Node.js and How Does It Work?
Node.js is a JavaScript runtime built on V8 that runs code outside the browser. Learn the event loop, non-blocking I/O and what Node.js is good at.
466 posts about JavaScript: questions with answers, tutorials and articles, newest first.
Node.js is a JavaScript runtime built on V8 that runs code outside the browser. Learn the event loop, non-blocking I/O and what Node.js is good at.
A study-ordered JavaScript roadmap: 20 parts from first script to Node.js, TypeScript, performance, security, interview questions and real projects.
A complete React 19 learning path in 18 parts, from setup and JSX to hooks, routing, testing, Next.js and deployment, with every article listed in study order.
A step-by-step Node.js guide from installation to production deployment, covering Express, REST APIs, databases, security, testing, TypeScript and Docker in study order.

How to throttle functions in JavaScript with working leading and trailing implementations, and when to use debounce or requestAnimationFrame instead.

A shallow copy shares nested objects while a deep copy duplicates them all. Learn which method to use, including structuredClone, and the traps to avoid.

Debouncing runs a function only after events stop for a set delay. See a reusable helper, search and React examples, and how it differs from throttling.
JSON is a strict text format for data. See how JSON.parse and JSON.stringify convert it, which values do not survive, and how to handle errors safely.
eval runs a string in the caller's scope, while new Function compiles a string into a global-scope function. Learn the differences and safer alternatives.
A service worker is a background script that intercepts network requests, enabling offline pages, caching and push notifications in Progressive Web Apps.
addEventListener attaches event handlers to elements. See its syntax, options, event delegation, removal with AbortController and common mistakes.
Functional programming in JavaScript composes pure functions and avoids mutation. See immutability, higher-order functions, currying and composition with examples.
How the JavaScript new keyword builds an object step by step, with classes, constructor functions, new.target and common mistakes.
The JavaScript event queue stores ready callbacks for the event loop. Learn how tasks and microtasks are ordered, with a worked example and output.
Promise.race returns a promise that settles with the first input promise to settle. See timeout examples, pitfalls and how it differs from Promise.any.
Learn when to use textContent, innerHTML, insertAdjacentHTML and DOM methods to change element content safely, with working examples.
Learn how JavaScript template literals work: backtick syntax, ${} interpolation, multi-line strings, tagged templates, String.raw and common pitfalls.
Event delegation handles clicks on many children with one parent listener using event bubbling. See closest(), dynamic elements and which events cannot be delegated.
Use event.stopPropagation() to stop an event bubbling to parent elements, and learn when event delegation is a cleaner alternative.
Event bubbling carries a DOM event from the clicked element up through its parents. See how it works, how to stop it and why delegation relies on it.