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