私は、すべてのグローバル変数がグローバル オブジェクトからアクセスできると信じていました。したがって、アクセスできるx(そしてxローカルにバインドされていない) 場合window.xは、同じ値です。
ただし、Webページ( JSFiddle )では:
window === this // true in Chrome and Firefox
toString === window.toString // true in Chrome and Firefox
しかし、コンソールで:
window === this // true in Chrome console and Firebug, false in Firefox web console
toString === window.toString // false in Chrome, Firebug and Firefox web console
どうしてこれなの?windowグローバル オブジェクトが Chrome のコンソールにあるのにtoStringにバインドされていないのはなぜwindow.toStringですか? toStringFirefox のコンソールでは何がバインドされていますか? コンソールで他に異なるグローバル値は何ですか?