Javascript terms
From DOM manipulation to async superpowers
JavaScript has evolved from a scripting curiosity into a full-stack language powering browsers, servers, and everything in between. This category covers the language core — closures, prototypes, async patterns, the event loop, modern ES2024+ features — as well as runtime behaviour that trips up developers at every experience level. Understanding JavaScript deeply means fewer bugs and more confident code.
Canvas API — 2D Drawing HTML5
The HTML Canvas API provides a 2D drawing surface via JavaScript — used for charts, image manipulation, games, data visualisations, and any pixel-level rendering that DOM elements cannot efficiently handle.
2mo ago
javascript intermediate
Clipboard API HTML5
The async Clipboard API (navigator.clipboard) is the modern replacement for document.execCommand('copy') — supports text, images, and rich content with proper permission handling.
2mo ago
javascript beginner
Classic Closure-in-Loop Bug (var vs let) ES2015
The most common JavaScript closure bug: using var in a for loop captures the loop variable by reference so all callbacks see the final value — fixed by using let which creates a new binding per iteration.
2mo ago
javascript intermediate
Client-Side Sanitisation ES2015
DOMPurify and the Sanitizer API remove dangerous HTML before insertion — complementing PHP's server-side htmlspecialchars for rich-text scenarios.
2mo ago
javascript intermediate
CSRF Token Handling in Fetch & Axios ES2017
Including PHP-generated CSRF tokens in JavaScript requests — reading from meta tags or cookies and attaching to every state-changing request.
2mo ago
javascript intermediate
Custom Events & EventTarget API ES2015
Creating and dispatching custom DOM events for decoupled component communication — alternatives to direct function calls and third-party event emitters.
2mo ago
javascript intermediate