Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
    });
 
PREVIOUS NEXT
Tagged: #javascript #fetch #data #promise
ADD COMMENT
Topic
Name
5+2 =