-
-
Save ACbosong/82e81afe3f18ed91e6c3bc34cbaa7471 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 printL1(){ | |
let l = 3; | |
console.log(`printL1:`, l); | |
} | |
printL1() // => printL1: 3 | |
try{ | |
console.log(`Global l:`, l); //error | |
} catch { | |
console.log(`not find l`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment