Object instanceof Object
true
Object instanceof Function
true
Function instanceof Object
true
Function instanceof Function
true
so if Function is a
Suppose:
<---- : links to (via .__proto__
)
<-- : has inherited property of (via .
)
Then:
Function.prototype <---- {Object, Function}
Object <---- Function.prototype
Object.prototype <-- Object
console.log(Object.prototype.constructor === Object); // true!
Object.prototype
does not link to anything; it doesn't have __proto__
property.