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