Last active
June 10, 2019 21:38
-
-
Save JimRottinger/91b38e1cefab44906011b1833d7e3a40 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 getRedditJSON () { | |
const response = await fetch('https://www.reddit.com/.json') | |
return response.json() | |
} | |
getRedditJSON().then((data) => { | |
console.log(data) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment