diff --git a/fetch-response/index.html b/fetch-response/index.html index a3c65199..f38582d9 100644 --- a/fetch-response/index.html +++ b/fetch-response/index.html @@ -21,13 +21,13 @@

Fetch basic response example

fetch(myRequest) .then((response) => { - console.log(response.type); - console.log(response.url); - console.log(response.useFinalURL); - console.log(response.status); - console.log(response.ok); - console.log(response.statusText); - console.log(response.headers); + console.log('response.type =', response.type); + console.log('response.url =', response.url); + console.log('response.userFinalURL =', response.useFinalURL); + console.log('response.status =', response.status); + console.log('response.ok =', response.ok); + console.log('response.statusText =', response.statusText); + console.log('response.headers =', response.headers); if (!response.ok) { throw new Error(`HTTP error, status = ${response.status}`); }