fetch('https://api.public.com/api')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
No comments:
Post a Comment