console.log(Window.prototype.__proto__.__proto__.__proto__ === Object.prototype);
// true (Firefox & Chrome)
console.log(Window.prototype.__proto__ === Object.prototype);
// true (IE11)
console.log(window instanceof Window); // true console.log(Window.prototype.isPrototypeOf(window)); // true
No comments:
Post a Comment