What is the relationship between Object.__proto__ and Object.prototype in javascript?

what is the relationship between Object.__proto__ and Object.prototype in javascript?
printed in chrome, but it"s still not clear how to describe the relationship between them:

clipboard.png

Oct.15,2021

Object.__proto__ can be understood as a pointer to the prototype object of the constructor. Since Objec is a constructor, the function inherits from Function.prototype, so here Objec.__proto__ = Function.prototype;

Object.prototype is the prototype object of Object as a constructor. Interestingly, because Function.prototype is also an object, it also inherits from Object, so Function.prototype.__proto__ = Objec.prototype;

so, you have to ask them what the relationship is Object.__proto__.__proto__ = Object.prototype


after reading the above example, it is easy to understand that
Object.prototype is the prototype object of Object
proto , then the prototype object pointing to the constructor
proto is the property provided by the browser to easily access the prototype of the constructor

.
Menu