We say that ,
str.proto == String.prototype
so str is inherited from String.prototype // correct
str.proto.proto==Object.prototype
so str is inherited from Object.prototype
we can conclude that String.prototype is inherited from Object.prototype
BUT.
when i do
console.log(String.prototype.proto == Object.prototype)
it comes false Why?
It should come true because to check inheritance we see abstract equality of (x.proto==y) if it comes true . we say that x is inherited from y.