Open utterances-bot opened 3 years ago
What does this part do?
.then(response => response.json())
accesses the json part of the whole http request that the fetch api is abstracting.
What does this part do?
.then(response => response.json())
https://developer.mozilla.org/en-US/docs/Web/API/Response/json
How to Use the JavaScript Fetch API to Get JSON Data | Tania Rascia
In How to Use JSON Data with PHP or JavaScript, I discussed how to use to get data from a JSON feed. The Fetch API is a newer built-in…
https://www.taniarascia.com/how-to-use-the-javascript-fetch-api-to-get-json-data/