const employees = { firstName: "Bill", lastName: "Scott", salary: 2000 }, { firstName: "jo", lastName: "Smith", salary: 8000 } ];
How do I convert just the salaries to an array?
const employees = { firstName: "Bill", lastName: "Scott", salary: 2000 }, { firstName: "jo", lastName: "Smith", salary: 8000 } ];
How do I convert just the salaries to an array?