Glossary: JavaScript in the Browser
fetch
Also written: fetch(), Response, response.json(), response.ok
The browser function that sends a request and returns a promise for a Response. It rejects only when no response arrives, so you must check response.ok yourself.
Where the book teaches it
Related terms
HTTP status codesAPI (application programming interface)HttpError and fetchJSON