Question
FOLLOW ALL INSTRUCTIONS ACCORDINGLY: MUST BE DONE IN TYPESCRIPT FOR NODE 1) Define a Typescript class for representing students with three attributes: firstname, lastname, admissionYear;
FOLLOW ALL INSTRUCTIONS ACCORDINGLY:
MUST BE DONE IN TYPESCRIPT FOR NODE
1) Define a Typescript class for representing students with three attributes: firstname, lastname, admissionYear;
2) Create an array called studentList, store 5 students object to studentList array using push function. You can pick any values for the sample student names or admission years (ranging from 2014 to 2019)
3) Use a for loop to print out the number of years to graduate for students in the year. Your output should look like below:
- John Howard will graduate in 3 years
- Mary Lee will graduate in 2 years
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started