Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch function javascript

const loadData = () => {
    const url = `...URL...`;
    fetch(url)
        .then(res => res.json())
        .then(data => console.log(data))
        .catch(error = console.log(error))
};

loadData();

// See Results On Browser Consol
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fetch #function #javascript
ADD COMMENT
Topic
Name
4+4 =