Created
December 10, 2015 20:33
-
-
Save bozzmob/a36f0d28310df88f0a5d to your computer and use it in GitHub Desktop.
basic-async-await-1.js
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
console.log("hello"); | |
let myObj = { | |
async setObj: function(a,b) { | |
obj.a = a; | |
obj.b = b; | |
} | |
await setObj(2,3); | |
console.log(obj.a+obj.b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update 1