this
value, for instance if I do this, even inside the same function the scope can be changed and the this
value can be changed:So what’s happened here? We’ve created new scope which is not invoked from our event handler, so it defaults to the
window
Object as expected.@reference_1_toddmotto.com
An anonymous function
this
will refer to the window object on the global scope.@reference_2_stackoverflow
this
@reference_3_mozilla
No comments:
Post a Comment