What will be the result of the following code?
const numbers = [
{ value: 1 },
{ value: 2 },
{ value: 3 }
];
const result = numbers.map(num => num.value * 2);
What will be the result of the following code?
const numbers = [
{ value: 1 },
{ value: 2 },
{ value: 3 }
];
const result = numbers.map(num => num.value * 2);