JavaScript Pseudoclassical OOP | Purpose of property in the the prototype object property

后端 未结 0 841
一整个雨季
一整个雨季 2021-01-31 01:24

Let\'s say that you make a constructor function called \'Animal\' that looks like this :

function Animal(name, color, age){
    this.name = name;
    this.color =         


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