O'Reilly logo
  • Tzu-Hao Kuo thinks this is interesting:

The this parameter is very important in object oriented programming, and its value is determined by the invocation pattern. There are four patterns of invocation in JavaScript: the method invocation pattern, the function invocation pattern, the constructor invocation pattern, and the apply invocation pattern.


Cover of JavaScript: The Good Parts


Invocation pattern: --> how "this" is initialised. (1) method (2) function (3) constructor (4) apply