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