Why (String.prototype._proto_ == Object.prototype) gives false?

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.

@commonid284 String.prototype.__proto__ == Object.prototype does comes out to be true. Check again at your end. String inherits from Object and hence true.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.