"_proto_ and Prototype"
1.prototype (prototype function): The function has a prototype.prototype is an object that points to the reference address of the current constructor.
2._proto_ (object's prototype object): All objects have _proto_ properties. When an object is instantiated with a constructor, the _proto_ property of the new object is referred to as the prototype of the constructor.
Zhangsan._proto_==person.prototype
All objects will eventually point to the prototype of object ()
"Prototype Chain"
1. The _proto_ of the new object is directed to the prototype of the constructor through the constructor new object.
2. _proto_ of all functions refers to the prototype of the upper function
3. _proto_ of the object that is not a constructor new ({} The prototype of the new object () object) points to the prototype of object
4.Object _proto_ points to null
JavaScript OOP proto and prototype prototype diagram