Say we have the following code:
{
function aa() {
}
var zz;
}
function bb() {
}
which produces the following scope tree:
0: GlobalScope
1: BlockScope
2: FunctionScope
3: FunctionScope
However, if we take a look at the variables array from the global scope object:

we can see that only two variables belong to the global scope, zz and bb. Should aa not also belong to the global scope as it gets hoisted?
Say we have the following code:
which produces the following scope tree:
However, if we take a look at the variables array from the global scope object:
we can see that only two variables belong to the global scope,
zzandbb. Shouldaanot also belong to the global scope as it gets hoisted?