Fetch: modern Playground

Follow one fetch out and back: when it resolves, when it rejects, where a 404 goes, and what you hold after await fetch(). An interactive Fetch: modern…

Why it matters

Almost every page gets its data through fetch. The two costliest misunderstandings: thinking a 404 lands in catch, and forgetting that reading the body waits too. Knowing the shape of the exchange lets you handle network errors, HTTP errors and parsing errors one by one.

The key idea

fetch only rejects when there is no reply at all

Common mistakes

Try it in this playground