Created
April 21, 2020 18:34
-
-
Save Jagathishrex/d6162181a42b018daff41d1213daa8e8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
try { | |
var a = 10; | |
throw "a is function scoped "; | |
} catch(e) { | |
console.log("Reached catch"); | |
console.log(a); // 10 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment