When you pass ‘this’ as an argument? [duplicate]
this inside a function call gets set according to how a function is called. There are six main ways that this gets set. Normal Function Call: In a normal function call such as foo(), this is set to either the global object (which is window in a browser or global in nodejs) or to undefined … Read more