// Making get requests const url = "http://dummy.restapiexample.com/api/v1/employees"; fetchurl() .then(res => { console.log(res); }) .catch(err => { console.log('Error: ${err}' ); });