Last active
November 17, 2020 18:43
-
-
Save leopolicastro/03a837440d90bb470287ddb88ef95707 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch(url) | |
.then(data => { | |
return data.json() | |
}) | |
.then(res => { | |
console.log(res) | |
}) | |
.catch(err => { | |
console.log(err) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment