Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use javascript please use Java script Your company is giving every employee earning less than $50,000 a 10% raise! Write a function employeeRaises (peopleObj) that

use javascript please
image text in transcribed
use Java script Your company is giving every employee earning less than $50,000 a 10% raise! Write a function employeeRaises (peopleObj) that takes an array of objects containing employee names and their salaries and returns an array containing the employees that need raises, along with their new salaries. Example: employees [ { name: "Alice", salary: 80000 }, { name: "Bob", salary: 40000 }, { name: "Carol", salary: 60000 }, { name: "Dan", salary: 70000 }, { name: "Ellen", salary: 100000 }, ]; console.log(employeeRaises (employees)); // [ { name: 'Bob', salary: 44000 } ]

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions