Last active
October 19, 2022 10:48
-
-
Save jbidoret/7a9bbc6ce3d818514f7450df171cdc68 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
async function getQuote() { | |
let response = await fetch( | |
"https://api.chucknorris.io/jokes/random" | |
); | |
let data = await response.json(); | |
return data; | |
} | |
getQuote().then((data) => { | |
console.log(data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment