Created
March 12, 2019 09:42
-
-
Save KristerV/b5f9c55ead493357f4d55e2c93e48a7f 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 request = async function() { | |
const response = await fetch('https://api.com/route'); | |
const json = await response.json(); // or .text() for simpler data like String | |
console.log(json); | |
} | |
request(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment