0
What should i do to force this code to print an age?
2 Réponses
+ 2
You should create a person object.
let person1 = new person("PouryaDB",20);
// To print age
document.write(person1.age);
// To print yearOfBirth
document.write(person1.yearOfBirth());
0
Thx