Let is block scope . But I have found this codes output wired. how the let declared in window can be accessed in another function?
let wind ="something blah blah";
function trial(){
console.log(wind);
}
trial();
Let is block scope . But I have found this codes output wired. how the let declared in window can be accessed in another function?
let wind ="something blah blah";
function trial(){
console.log(wind);
}
trial();