Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!