Posts

Showing posts with the label Fetch

Basic fetch api Script code

  Basic fetch api Script code A basic fetch request is really simple to set up Have a look at the following code: fetch(‘url’) .then(function(response) { return response.json(); }) .then(function(res2) { console.log(res2); });