function Person(){} Person.prototype.name="lie" Person.prototype.sayname=function(){ console.log(this.name) } let Person2=new Person(); Person2.sayname();