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