Created
January 9, 2018 20:50
-
-
Save calebcgates/1d20391c8218d741ef9512ee0e2f047c 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
const fetchquote = async ()=> { | |
const res = await fetch('https://talaikis.com/api/quotes/random/'); | |
const jsonObject = await res.json(); | |
console.log(jsonObject.quote) | |
} | |
fetchquote(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment