What value will be assigned to newNames in the following code?
const people = [
{ name: 'Ana', age: 25 },
{ name: 'Carlos', age: 30 }
];
const newNames = people.map(person => person.name);
What value will be assigned to newNames in the following code?
const people = [
{ name: 'Ana', age: 25 },
{ name: 'Carlos', age: 30 }
];
const newNames = people.map(person => person.name);