ES6-07: Diagram of the relationship between constructor, prototype object, and object prototype

What does __proto__ point to?

Answer: __proto__ points to the prototype object of the object's constructor.

Association diagrams of constructors, prototype objects, and object prototypes

constructor property

  • The constructor attribute helps us point to the constructor itself.

The constructor attribute cannot point to the constructor

The relationship diagram among the constructor, the instance object, and the prototype object

Guess you like

Origin blog.csdn.net/sinat_41696687/article/details/113845924
Recommended