JS

JavaScript Code Output Challenge - map method squa...

16.

What will be the output of the following code?

let numbers = [10, 20, 30, 40, 50];
let squareNumbers = numbers.map(function(number) {
  return number * number;
});
console.log(squareNumbers);

[100, 400, 900, 1600, 2500, 10, 20, 30, 40, 50]

[100, 400, 900, 1600, 2500, 100, 400, 900, 1600, 2500]

[100, 400, 900, 1600, 2500]

[10, 20, 30, 40, 50]