Skip to content

Instantly share code, notes, and snippets.

@ACbosong

ACbosong/.js Secret

Created August 10, 2021 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ACbosong/7a328ef7e6fade1408e0bdc580a48afc to your computer and use it in GitHub Desktop.
Save ACbosong/7a328ef7e6fade1408e0bdc580a48afc to your computer and use it in GitHub Desktop.
function printL3(){
if(true){
let l = 3
}
try {
 console.log(`printL2:`, l)
} catch {
console.log(`can't find l in printL3`)
}
}
printL3() // => can't find l in printL2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment