why in JS 'this' keyword points to global variable, when i use function alias stored in another variable ? Code is Given Below
317
What is the scope of variables in JavaScript?
101809
What is the 'this' pointer?
63109
What's the point of the var keyword?
78808
The 'this' keyword as a property
45785
The scope of variable in inner anonymous method
2701
Assigning to variable from parent function: "Local variable referenced before assignment"
32727
Calling a Javascript member function of an object named in a variable
42330
How is this form of scoping called?
6369
Is there a spec that the id of elements should be made global variable?
1361
What is "rvalue reference for *this"?
63663
Passing window and undefined to an immediately invoked anonymous function. Why?
26433
How does variable assignment work in JavaScript?
19638
What is the purpose of the var keyword and when should I use it (or omit it)?
121561
Difference between $(this) and event.target?
31879
What is the meaning of "this" in Java?
14237
How to get the global object in JavaScript?
45659
What is the difference between Class.this and this in Java