1let url = 'https://example.com';
2
3fetch(url)
4.then(res => res.json())
5.then((out) => {
6 console.log('Checkout this JSON! ', out);
7})
8.catch(err => { throw err });
1let url = 'https://labtask87.s3.amazonaws.com/employeedata.json';
2
3fetch(url)
4.then(res => res.json())
5.then((out) => {
6 console.log('Checkout this JSON! ', out);
7})
8.catch(err => { throw err });