6 ms·
There's an error in his first 'Function Invocation' example, the answer is 500, not 501. [Reason: 'this.value++;' in the method invocation refers to obj.value,
by hafabnew 14y ago
There's an error in his first 'Function Invocation' example, the answer is 500, not 501.
[Reason: 'this.value++;' in the method invocation refers to obj.value, since 'this' is bound to 'obj'. Only in the innerFunction function invocation does 'this' bind to the global object.]
- deleted 14y ago[deleted]