What is printed when executing the following code?
const numbers = [1, 3, 5];
const sum = numbers.map(x => x + 1).reduce((acc, x) => acc + x, 0);
console.log(sum);
What is printed when executing the following code?
const numbers = [1, 3, 5];
const sum = numbers.map(x => x + 1).reduce((acc, x) => acc + x, 0);
console.log(sum);