O'Reilly logo
  • Christopher Brown thinks this is interesting:

The Function Invocation Pattern

When a function is not the property of an object, then it is invoked as a function:

var sum = add(3, 4);    // sum is 7

When a function is invoked with this pattern, this is bound to the global object. This was a mistake in the design of the language. Had the language been designed correctly, when the inner function is invoked, this would stil...


Cover of JavaScript: The Good Parts


why _this or that is necessary.