Consider the following code snippet:
const numbers = [1, 2, 3, 4, 5];
const squaredNumbers = numbers.map(num => Math.pow(num, 2));
console.log(squaredNumbers);
What will be the output of the console.log statement?
Consider the following code snippet:
const numbers = [1, 2, 3, 4, 5];
const squaredNumbers = numbers.map(num => Math.pow(num, 2));
console.log(squaredNumbers);
What will be the output of the console.log statement?