Why does the hello() function appear in two different scopes?
function outerScope(){
for(let i=0;i<10;i++){
function hello(){
console.log("Hello from hello",i);
}
console.log(hello.toString());
hello();
}
}
outerScope();
As shown below (Block and Local):