Question: In typescript implement a member function yearstillretirement, which calculate how many years a worker will need to retire based on when they joined the force
In typescript implement a member function yearstillretirement, which calculate how many years a worker will need to retire based on when they joined the force plus 12 years of work. If they joined in the year 2000 then it would return 2012. Below is just a base.
class Workers {
startedwork: string;
constructor(startedwork: string) {
this.startedwork = startedwork;
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
