01
convention is add properties to this
and methods to the parent class.prototype
function Person(age,name,gender){
this.age = age
this.name = name
this.gender = gender
}
Person.prototype.run = function (){return 'Running'}
Person.prototype.talk = ()=>{return 'Talking'}
Person.prototype.walk = () => {return 'Walking'}
const me = new Person()
me
me.__prototype__