0

Method adding in object plz explain..

28th Jul 2019, 7:20 PM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
3 odpowiedzi
+ 1
Oohk
29th Jul 2019, 5:59 AM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
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());
29th Jul 2019, 3:45 AM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
0
In thisprogram from were year of birth and return 2016 come ...
29th Jul 2019, 3:46 AM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar