Fetch API
A browser and runtime API for making HTTP requests that returns a Promise.
What is Fetch API in JavaScript?
Fetch API — A browser and runtime API for making HTTP requests that returns a Promise.
async function loadOrder() {
const response = await fetch("/api/order");
return response.json();
}
Level: Journeyman · More JavaScript terms at this level
Updated