let Person = function(name,age,job){
this.name=name,
this.age=age,
this.job=job,
this.year=function(){
return 2023-this.age;
}
}
let person = new Person ('Peter',35,'programmer');
console.log(person.year());
Add a method to the person object that calculates their birth year based on their age.
ma2bol al7al hek ?