0 points

fetch example


dashboard

Sat Oct 24 2020 16:58:33 GMT+0000 (UTC)

Posted by @jlang

fetch('https://api.github.com/repos/nodejs/node/issues?per_page=5'{
  cache: 'reload'
})
  .then(function (response) {
    return response.json();
  })
  .then(function (data) {
    console.log(data);
  });
content_copy Copy