0
var a = function foo(){
    this.confusing = 'hell yeah';
    function boo(){
        this...
    } 
}

In function boo() which call inside of foo(), will this be defined for foo()element?

SalmonKiller
  • 2,123
  • 3
  • 21
  • 55
Dina93
  • 25
  • 6

1 Answers1

0

Inside the boo function, this will reference the boo function object, or "window" if you will. This is similar to the stacking of scopes in python, if you're familiar with that.

SalmonKiller
  • 2,123
  • 3
  • 21
  • 55