Slide 50
Slide 50 text
The this Keyword
Inside a function, a special keyword named ‘this’
is used to determine the function calling context
When a function was called as a method, this
refers to the calling object
Otherwise, this refers to the global object
Friday, February 10, 2012