mozilla

Compare Revisions

Object.prototype.__proto__

Change Revisions

Revision 510259:

Revision 510259 by Waldo on

Revision 510261:

Revision 510261 by Waldo on

Title:
Object.prototype.__proto__
Object.prototype.__proto__
Slug:
Web/JavaScript/Reference/Global_Objects/Object/proto
Web/JavaScript/Reference/Global_Objects/Object/proto
Tags:
"JavaScript", "Property", "prototype", "Object"
"JavaScript", "Property", "prototype", "Object"
Content:

Revision 510259
Revision 510261
n58print("noProto.__proto__: " + typeof noProto.__proto__); // noPron58print(typeof noProto.__proto__); // undefined
>to.__proto__: undefined 
59print("noProto.[[Prototype]]: " + Object.getPrototypeOf(noProto))59print(Object.getPrototypeOf(noProto)); // null
>; // noProto.[[Prototype]]: null 
n63print("noProto.__proto__: " + noProto.__proto__); // noProto.__prn63print(noProto.__proto__); // 17
>oto__: 17 
64print("noProto.[[Prototype]]: " + Object.getPrototypeOf(noProto))64print(Object.getPrototypeOf(noProto)); // null
>; // noProto.[[Prototype]]: null 
t70print("protoHidden.__proto__: " + protoHidden.__proto__); // prott70print(protoHidden.__proto__); // 42
>oHidden.__proto__: 42 
71print("protoHidden.[[Prototype]] is Object.prototype: " +71print(Object.getPrototypeOf(protoHidden) === Object.prototype); /
 >/ true
72      Object.getPrototypeOf(protoHidden) === Object.prototype); /
>/ protoHidden.[[Prototype]] is Object.prototype: true 

Back to History