const fetchData = () => { fetch('https://api.github.com').then(resp => { resp.json().then(data => { console.log(data); }); }); };