Last updated 2 years ago
Was this helpful?
โฉ โฉ โฉ getJSON()
function getJSON(url) { return fetch(url).then(response => response.json()); }
- returns Promise that resolves to the object
โฉ - returns Promise which resolves with the result of parsing the body text as .
โฉ - returns Promise
Response
JSON