Question: Your tasks: Create JavaScript class called 'Employee' with properties for name and salary. Make sure to console.log the name and salary. Include a method to
Your tasks:
Create JavaScript class called 'Employee' with properties for name and salary.
Make sure to console.log the name and salary.
Include a method to calculate and return annual sallary.
Create a subclass called 'Manager' that inherits from the 'Employee' class and adds an additional property for department.
Override the annual salary calculation method to include bonuses for managers of
Add a console log for the amount of the bonus.
Create two instances of the 'Manager' class and calculate their annual salary using the data below.
Test data:
Data Manager : Bob Ross works in the Digital Marketing department and he is making $ a month.
Data Manager : Debbie Little works in the Finance department and she is making $ a month.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
