Created
January 9, 2018 06:58
-
-
Save goofmint/92bc7ca6a8811205d69bb7e5a8cface2 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 main() { | |
var x = await delay(10); | |
console.log(x); | |
try { | |
var y = await delay(20); | |
console.log(y); | |
}catch(e) { | |
console.log('Error'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment