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.
NaN — Detection & Avoiding Pitfalls ES2015
NaN is the only JavaScript value not equal to itself — use Number.isNaN() (not isNaN()) to detect it, as isNaN() coerces its argument first.
2mo ago
javascript beginner
Nullish Coalescing (??) & Logical Assignment ES2020
?? returns the right side only when the left is null or undefined — unlike ||, it does not trigger on 0 or empty string. Parallel to PHP's null coalescing operator.
2mo ago
javascript beginner