Skip to content

Instantly share code, notes, and snippets.

@jbidoret
Last active October 19, 2022 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbidoret/7a9bbc6ce3d818514f7450df171cdc68 to your computer and use it in GitHub Desktop.
Save jbidoret/7a9bbc6ce3d818514f7450df171cdc68 to your computer and use it in GitHub Desktop.
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