Skip to content

Instantly share code, notes, and snippets.

@giann

giann/async.js Secret

Last active April 2, 2018 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save giann/01c21b505381084621d998b2dfa34574 to your computer and use it in GitHub Desktop.
Save giann/01c21b505381084621d998b2dfa34574 to your computer and use it in GitHub Desktop.
let asynchronousFn = async function() {
let bird1 = await fetch("http://some.api.com/raven");
let bird2 = await fetch("http://some.api.com/dove");
console.log(bird1.name, bird2.name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment