If we divide the operation of javascript engine into compilation phase (where that whole lexical scope diagram is setup) Vs running phase (where code is executed using lexical scope setup in compilation phase), when is the scope for function expressions setup? Is it during the compilation or running/interpretation phase?
Also, whenever the scope for the function expression is setup the parent scope will always be the global scope right? (I've seen this happen code, just want to confirm).