Created
November 13, 2018 12:47
-
-
Save gisderdube/dbe49edb29146de019b584b2b75a9ecc 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() { | |
try { | |
await someFuncThatThrowsAnError() | |
} catch (err) { | |
console.error(err) // we will make sense of that later | |
} | |
console.log('Easy!') // will get executed | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment