Language: 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 s 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: 48000 }, {name: "Carol", salary: 60000}, {name: "Dan", salary: 78000}, {name: "Ellen", salary: 100000}, console.log(employeeRaises (employees) ); // [ { na
Language: 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 s 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: 48000 },
{name: "Carol", salary: 60000},
{name: "Dan", salary: 78000},
{name: "Ellen", salary: 100000},
console.log(employeeRaises (employees) ); // [ { name: 'Bob', salary: 44000 } ]
funcation emplyeeRaises(employees){
|// Your code here
}
/****DO NOT MODIFY ANYTHING UNDER THIS LINE****/
try{
| module.exports = employeeRaises;
}catch (e) {
|module.exports=null;
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images