What is printed when executing the following code?
let result = 1;
const arr = [2, 3, 4];
arr.forEach(item => {
result *= item;
});
console.log(result);
What is printed when executing the following code?
let result = 1;
const arr = [2, 3, 4];
arr.forEach(item => {
result *= item;
});
console.log(result);