Created
July 1, 2020 11:05
-
-
Save velotiotech/ca7d4ce8c0e0e7398700ba612c543f06 to your computer and use it in GitHub Desktop.
nodejs-eg
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() { | |
try { | |
const result = await promise; | |
} catch(error) { | |
console.log(error); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment