I have the following code and want to change the names or to switsch the value, but i have no idea how it can work and is easy
var employees = [{firstName: "Richter", lastName: "Johnas"},
{firstName: "Leibig", lastName: "Linda"},
{firstName: "Schneider", lastName: "Mariane"},
];
console.log("\n> Should display [{firstName: 'Johnas', lastName: 'Richter'}, {firstName: 'Linda', lastName: 'Leibig'}, {firstName: 'Mariane', lastName: 'Schneider'}]");
console.log(revertFirstNamesAndLastNames(employees));`
And i want to change the firstname to lastname and lastname to firstname.