Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch api javascript

fetch('http://example.com/movies.json')
  .then((response) => {
    return response.json();
  })
  .then((myJson) => {
    console.log(myJson);
  });
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #fetch #api #javascript
ADD COMMENT
Topic
Name
7+6 =