According to w3school Every JavaScript object has a prototype. The prototype is also an object.
But let's examine this:
var SomeObject = { name: "foo" }
SomeObject.prototype // Undefined although its an object
I'm aware of __proto__
that it has
function SomeFunction () {
}
SomeFunction.prototype // object
But
var SomeOtherObject = new SomeFunction()
SomOtherObject.prototype // undefined but its is an object
Which contradicts w3school statement Every JavaScript object has a prototype. The prototype is also an object
Any idea why?