Skip to content

Instantly share code, notes, and snippets.

@jo32
Created September 29, 2015 07:43
Show Gist options
  • Select an option

  • Save jo32/40f81d3fdcb441930369 to your computer and use it in GitHub Desktop.

Select an option

Save jo32/40f81d3fdcb441930369 to your computer and use it in GitHub Desktop.
es7async-example.js
async function hello() {
var a = await Promise.resolve('Hello ');
return a;
}
(async function helloWorld() {
var hello = await hello();
console.log(hello + 'World!');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment