Last active
April 21, 2020 18:39
-
-
Save Jagathishrex/d3f5eb95dd615c12e03cbb6ddae53ede 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
function test() { | |
try { | |
return 10; | |
} finally { | |
console.log("finally"); | |
return 1; | |
} | |
} | |
let a = test(); //finally | |
console.log( a ); // 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment