Here are the usual constructor function. My question is, how she will lexical environment when calling through new? Namely this.method he gets there or not?
function Func() {
var a = 10;
this.method = function() {
// code
};
function f() {
}
}
Right?
Lexical environment = {
a: undifined,
f: function
}
[[Scope]] -> window