const myGlobal = 0;
function func() {
const myVar = 1;
console.log(myGlobal); // logs "0"
function inner0fFunc() {
const myInnerVar
console.log(myVar, myGlobal); // logs "1 0"
2;
function innerOfInner0fFunc () {
console.log(myInnerVar, myVar, myGlobal); // logs "2 1 0"
}
innerofInner0fFunc();
}
inner0fFunc ();
}
func();