Created
May 14, 2018 16:39
-
-
Save tamlyn/b922286e38e9f7a783d9c53f3968c5ca to your computer and use it in GitHub Desktop.
This file contains hidden or 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 fact() { | |
const response = await fetch('https://catfact.ninja/fact') | |
const data = await response.json() | |
return data.fact | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment