restructured
This commit is contained in:
parent
764c4ced23
commit
c5f161fc29
@ -10,9 +10,9 @@ const person2 = new Employee("Jane", "Doe", 5);
|
||||
const workers = [person1, person2];
|
||||
|
||||
Employee.prototype.details = function(){
|
||||
return this.first + " " + this.last + " has worked here " + this.years + " years"
|
||||
return this.first + " " + this.last + " has worked here " + this.years + " years";
|
||||
}
|
||||
|
||||
workers.forEach((person) => {
|
||||
console.log(person.details());
|
||||
})
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user