Skip to content

?? vs ||: Why Your Zero Keeps Disappearing

The decisive difference between the nullish coalescing operator (??) and || — it's why 0 and empty strings get swallowed by defaults. Falsy traps, ??= assignment, optional chaining combos, and why mixing the two throws a SyntaxError.

Published date: 2026-07-14 · Updated 2026-07-17 · Reading time: 9 min · Word count: 1835 words · Author: Isaac

Promise.all vs Promise.allSettled: The Difference That Matters

One failing Promise can take down your entire dashboard. Compare Promise.all and Promise.allSettled with real-world examples, and learn when to use which.

Published date: 2026-04-08 · Updated 2026-07-17 · Reading time: 8 min · Word count: 1489 words · Author: Isaac

Function Declarations vs Expressions: Hoisting Explained

Learn the difference between function declarations and expressions, how hoisting works under the hood, and when to use arrow functions in practice.

맨 위로