Why inherited object property __proto__ reference to Object and not to the class which it inherit from?

前端 未结 0 1616
日久生厌
日久生厌 2021-01-03 02:57

I have the following code:

   const Person = function (firstName, birthYear) {
  this.firstName = firstName;
  this.birthYear = birthYear;
};

Person.prototyp         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题