Created
November 13, 2018 11:51
-
-
Save gisderdube/4f682972f2645b398e6c2b7f4b08b6c0 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
const a = 5 | |
try { | |
console.log(b) // b is not defined, so throws an error | |
} catch (err) { | |
console.error(err) // will log the error with the error stack | |
} finally { | |
console.log(a) // will always get executed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment