Answers for "javascript promise fetch"

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
4

fetch suntax

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

javascript fetch get data from promise

var x = fetch(SOME_URL, SOME_POST_DATA)
    .then((response) => response.json())
    .then((responseJSON) => {
       // do stuff with responseJSON here...
       console.log(responseJSON);
    });
Posted by: Guest on September-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language