Answered step by step
Verified Expert Solution
Link Copied!

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 15%.
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 1: Bob Ross works in the Digital Marketing department and he is making $6600.00 a month.
Data Manager 2: Debbie Little works in the Finance department and she is making $7205.00 a month.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

=+4 How does IHRM strategy vary with an MNEs business strategy?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago