-
-
Save ACbosong/a9b434b899f98e6a267cbf5c358c6555 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
function printV1(){ | |
var v = 2 | |
console.log(`printV1:`, v) | |
} | |
printV1() // => pritnV1: 2 | |
try{ | |
console.log(v)// error | |
} catch { | |
console.log('not find v'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment