Answers for "fetch .then"

41

fetch in js

fetch('http://example.com/songs')
	.then(response => response.json())
	.then(data => console.log(data))
	.catch(err => console.error(err));
Posted by: Guest on April-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language