Web APIs & Async articles, tutorials, and guides

In-depth articles, tutorials, and guides on Web APIs & Async — covering everything from fundamentals to advanced patterns.

Browse reading paths
Topics Web APIs & Async

The JavaScript Event Loop: Macrotasks vs Microtasks

JavaScript is single-threaded, yet it handles timers, network requests, and user input concurrently without freezing. The event loop is the mechanism that makes this possible — and understanding macrotasks vs microtasks explains the execution order that trips up almost every developer at some point.

Async/Await vs Generators in JavaScript

In modern JavaScript development, especially in the context of React applications, handling asynchronous code efficiently and effectively is crucial. While `async/await` has become the go-to solution for most developers, there are scenarios where generators can offer more control and flexibility.