Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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