Answers for "fetch in promise"

19

fetch api javascript

fetch('http://example.com/movies.json')
  .then((response) => {
    return response.json();
  })
  .then((myJson) => {
    console.log(myJson);
  });
Posted by: Guest on February-10-2020
0

intro-to-promises fetch()

fetch(`https://anapioficeandfire.com/api/characters/583`)
  .then(response => response.json())
  .then(data => console.log(data))
Posted by: Guest on August-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language