Fetch API
Also known as fetch · window.fetch
A browser API, also available in some other runtimes, for making requests and handling responses using promises.
In the real world
const response = await fetch('/api/terms'); if (!response.ok) throw new Error('Request failed'); const terms = await response.json();