parent
5fedde7d42
commit
1739d9bfcd
@ -0,0 +1,8 @@
|
||||
//scope.js
|
||||
a = 'JavaScript' // is a window scope this found anywhere
|
||||
b = 10 // this is a window scope variable
|
||||
function letsLearnScope() {
|
||||
console.log(a, b)
|
||||
if (true) {
|
||||
console.log(a, b)
|
||||
}
|
Loading…
Reference in new issue