0
Method adding in object plz explain..
3 Respuestas
+ 1
Oohk
0
function person(name, age) {
this.name= name;
this.age = age;
this.yearOfBirth = bornYear;
}
function bornYear() {
return 2016 - this.age;
}
var p = new person("A", 22);
document.write(p.yearOfBirth());
0
In thisprogram from were
year of birth and
return 2016 come ...