Let’s say we have a function:
function fn(){return this;}
If we call the function by foo = fn();, then foo will get the value of this, but I am curious about where the return goes if the the function is called without receiver, i.e. fn();?
Thanks!
It goes nowhere. The returned values will not be referenced by anything and is “thrown away”.