Created
March 23, 2017 22:34
-
-
Save senthilp/66d08637b730ce90ba4a1bdb5f9c1955 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
async function asyncFun () { | |
const value = await Promise | |
.resolve(1); | |
console.log(typeof value); // number | |
return value; | |
} | |
const value = asyncFun(); | |
console.log(typeof value); // object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment