0 points

Get a JSON-object using pure Promises - fetch.then


dashboard

Sat Sep 26 2020 14:09:03 GMT+0000 (UTC)

Posted by @mishka #javascript

fetch(%27https://api.github.com/repos/javascript-tutorial/en.javascript.info/commits%27)
  .then(response => response.json())
  .then(commits => alert(commits[0].author.login));
content_copy Copy

https://javascript.info/fetch