I tried and got the following output:
[object of object]
I am familiar with adding new functions to Object.prototype so that every object in the program inherits this new function. But I'm a little curious to know how this was implemented. I assume Object should be of type
{ name: expression, name: expression, ... }
I also assume that Object.prototype should be the key to one of the Object properties, and the value of this property is "Object Object". Now, please let me know if I understood correctly?
I am also wondering what the difference is between “object” and “object” in “object of object”. I am also wondering if any of the above objects are related to the previous ".prototype". Please clarify?
When I tried to print Object.prototype.object, Object.prototype.Object, Object.prototype [object], Object.prototype [Object] and Object.prototype [0], I always get undefined. If the prototype has no property, how did I get [object Object]?
source share