My problem is to know who is the Subject of setting and it the following sentence:
When it is invoked, our new function simply invokes the original function that was passed in, setting the original value as this. It also passes through the arguments.
Source: https://yehudakatz.com/2011/08/11/understanding-javascript-function-invocation-and-this/, section: Using Function.prototype.bind.
- Does the ", setting ..." expanded to ", and the new function setting" or ", the original function setting"?
- Does the "It also passes ..." expanded to "the original function also passes" or "the new function also passes"?
this
, not a demonstrative pronoun as usual.