December 4, 2026
Why [10, 9, 1].sort() gets it wrong, how to sort by date or amount, order accented names properly and chain several criteria…
December 3, 2026
A "Load more" button on a WordPress archive page, done properly: a REST route that returns the card HTML, accessible JavaScript, and…
December 1, 2026
Detect clicks outside an element with contains() and composedPath(), avoid the menu that closes as soon as it opens, handle Escape and…
November 29, 2026
Why 0.1 + 0.2 isn't 0.3, why (1.005).toFixed(2) returns "1.00", and how to round, compare and calculate money correctly in JavaScript.
November 28, 2026
Blocking scripts, async, defer, type=module and on-demand loading: what each option actually does, which to pick for your own code and third-party…
November 26, 2026
Upload a file without reloading the page, properly: FormData, type and size checks, image preview, a reliable progress bar and PHP handling,…
November 24, 2026
Where "Cannot use import statement outside a module" comes from, how to fix it in the browser, in Node.js and in WordPress,…
November 22, 2026
Four ways to combine promises, four different reactions to a failure. When to use Promise.all, Promise.allSettled, Promise.race and Promise.any, with realistic fetch-based…
November 21, 2026
An app installed from the browser, a native app in the stores, or a cross-platform build with Flutter or React Native: what…
November 19, 2026
You change a copy and the original changes too? References, shallow and deep copies explained with examples: spread, Object.assign, structuredClone, the limits…