Tuesday, March 1, 2022

api calls using fetch

fetch('https://jsonplaceholder.typicode.com/users')

            .then(res => res.json())

            .then(json => console.log(json))

            .catch(err => console.error('Error:', err));

            

Kirtishil Patil