Skip to content

Instantly share code, notes, and snippets.

@KristerV
Created March 12, 2019 09:42
Show Gist options
  • Save KristerV/b5f9c55ead493357f4d55e2c93e48a7f to your computer and use it in GitHub Desktop.
Save KristerV/b5f9c55ead493357f4d55e2c93e48a7f to your computer and use it in GitHub Desktop.
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