I believed that all global variables are accessible from a global object. Therefore, if I can access x (and x not bound locally), then window.x is the same value.
However, on the web page ( on JSFiddle ):
window === this // true in Chrome and Firefox toString === window.toString // true in Chrome and Firefox
But in the console:
window === this // true in Chrome console and Firebug, false in Firefox web console toString === window.toString // false in Chrome, Firebug and Firefox web console
Why is this? Why is window global object in the Chrome console, but toString not bound to window.toString ? What is toString related to the Firefox console? What other global values ββdiffer in the console?
source share