Web

Fetch

Definition

The modern browser API for making HTTP requests. `fetch()` returns a Promise that resolves to the Response object. It replaces the older XMLHttpRequest (XHR) and works with async/await.

Code Example

Web

Learn More

Related Terms