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.
Top-Level Await in Modules ES2022
ES2022 top-level await lets you use await at the module root without wrapping in async function — blocking module evaluation until the awaited Promise resolves.
2mo ago
javascript intermediate
toSorted / toReversed / with — Immutable Array Methods ES2023
JavaScript ES2023 adds immutable counterparts to mutating array methods: toSorted() returns a sorted copy, toReversed() returns a reversed copy, and with(index, value) returns a copy with one element replaced — none mutate the original array.
2mo ago
javascript beginner
Temporal Dead Zone (TDZ) ES2015
let and const variables exist in a Temporal Dead Zone from the start of their block until their declaration — accessing them before throws ReferenceError.
2mo ago
javascript intermediate
Type Coercion Gotchas (== vs ===) ES5
JavaScript's == performs type coercion producing surprising results — '0' == false (true), [] == false (true), null == undefined (true) — use === always.
2mo ago
javascript intermediate
TypeError — Common Causes and Fixes ES5
TypeError is thrown when a value is not of the expected type — most commonly 'Cannot read properties of undefined/null', the most frequent JavaScript runtime error.
2mo ago
javascript beginner
typeof Checks and the null Quirk ES5
typeof returns a string describing the type — but typeof null === 'object' is a famous historical bug that cannot be fixed without breaking the web, requiring explicit null checks alongside typeof.
2mo ago
javascript beginner
Template Literals ES2015
Backtick strings with ${expression} interpolation — the JavaScript equivalent of PHP's double-quoted strings and heredoc.
2mo ago
javascript beginner
Tagged Template Literals ES2015
A function prefix on a template literal — the tag function receives the string parts and interpolated values separately, enabling safe SQL, HTML, CSS, and i18n string construction.
2mo ago
javascript intermediate
Typed Arrays & ArrayBuffer ES2015
Fixed-type binary arrays (Int32Array, Float64Array, Uint8Array) backed by raw ArrayBuffer memory — essential for WebGL, audio processing, file handling, and Web Workers.
2mo ago
javascript advanced
this Binding in JavaScript ES5
this is determined by how a function is called — call site, not definition site — with arrow functions as the exception (lexical this).
2mo ago
javascript intermediate