How come Object.prototype.toString === toString
? If I have this in the global scope:
var toStringValue = toString.call("foobaz");
I would expect toStringValue
to be the value of window.toString
because window
is the default scope, right? How come toString
by itself resolves to Object.prototype.toString
instead of window.toString
?