What is printed when executing the following code?
const arr = [1, 2, 3, 4];
const product = arr.reduce((acc, x) => acc * x, 1);
console.log(product);
What is printed when executing the following code?
const arr = [1, 2, 3, 4];
const product = arr.reduce((acc, x) => acc * x, 1);
console.log(product);