Certificates.dev Blog

Discover the latest Certificates tips & tricks, industry news, and best practices

DOM Events & Modern Patterns Cheat Sheet

DOM Events & Modern Patterns Cheat Sheet

Learn modern DOM event handling, including propagation, delegation, listener cleanup, custom events, forms, state management, efficient mutations, and observers to build responsive, performant pages without leaks.

Martin Ferret

Martin Ferret

this in JavaScript: Binding Rules and Arrow Functions

this in JavaScript: Binding Rules and Arrow Functions

JavaScript’s this depends on the call site, with explicit binding and new taking precedence; arrow functions inherit this, making them useful for callbacks but unsuitable as object methods.

Martin Ferret

Martin Ferret

Iterator Helpers: Lazy Pipelines in JavaScript

Iterator Helpers: Lazy Pipelines in JavaScript

ES2025 added map, filter, take and drop to iterators. Learn how lazy pipelines skip intermediate arrays, handle infinite sequences, and where they do not help.

Martin Ferret

Martin Ferret

AbortController: Cancellation and Cleanup in JavaScript

AbortController: Cancellation and Cleanup in JavaScript

AbortController does more than cancel a fetch. Learn how one signal cleans up event listeners, times out requests, and combines with AbortSignal.any().

Martin Ferret

Martin Ferret

Proxy and Reflect: Metaprogramming in JavaScript

Proxy and Reflect: Metaprogramming in JavaScript

Learn how JavaScript Proxy and Reflect intercept object operations: the 13 traps and why Reflect matters.

Martin Ferret

Martin Ferret

Intl.NumberFormat and Intl.RelativeTimeFormat: The Traps

Intl.NumberFormat and Intl.RelativeTimeFormat: The Traps

Intl.NumberFormat and Intl.RelativeTimeFormat replace your formatting library. Defaults, traps, and the 58x performance mistake to avoid.

Martin Ferret

Martin Ferret

The flat() and flatMap() methods

The flat() and flatMap() methods

Learn how JavaScript's flat() and flatMap() work: default depth, flat(Infinity), dropping holes, and using flatMap as a combined map and filter.

Martin Ferret

Martin Ferret

JavaScript Generators: Writing Iterators With yield

JavaScript Generators: Writing Iterators With yield

JavaScript generators explained: write lazy iterators with yield, handle infinite sequences, and skip the protocol boilerplate.

Martin Ferret

Martin Ferret

JavaScript Set Methods: Native Set Theory, Finally

JavaScript Set Methods: Native Set Theory, Finally

Seven new methods landed on JavaScript's Set: union, intersection, difference, and more. Baseline since 2024. A practical guide with real-world examples.

Martin Ferret

Martin Ferret