Skip to content

Glossary: Testing Web Apps

fetch

Also written: response.json, response.ok

The built-in function that sends an HTTP request and returns a promise of a response. The response's `ok` is true for status codes 200 to 299 and `json()` reads the body as JSON.

Where the book teaches it

Related terms

HTTP status codePOSTGlobal