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 a starting point.

class Workers {

startedwork: string;

constructor(startedwork: string) {

this.startedwork = startedwork;

}

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!