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.
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.