I've just started to learn the Fetch API: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch Here's a code snippet which I wrote to tinker around with it: fetch
Solution 1:
because response.json() returns another promise (which is within your function body)
Post a Comment for "Javascript Fetch Api - Why Does Response.json() Return A Promise Object (instead Of Json)?"