Created
June 14, 2018 08:50
-
-
Save ferreiratiago/73cf2a71959939fa7b75de94ea2bd4e3 to your computer and use it in GitHub Desktop.
Async function
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
(async function async() { | |
var one = await Promise.resolve(1); | |
var two = await Promise.resolve(2); | |
console.log(one, two); // 1 2 | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment