Fetch API
Noun · Development
Definitions
The modern browser API for making HTTP requests, replacing the older XMLHttpRequest. Returns Promises, supports streaming responses, and integrates with Service Workers. Cleaner syntax than XHR but notably doesn't reject on HTTP error status codes (404, 500) — only on network failures.
In plain English: The modern way to make HTTP requests from JavaScript in the browser, using promises instead of callbacks.
Example: "fetch('/api/users').then(res => res.json()) replaces the old XHR boilerplate — but remember to check res.ok for error status codes."