Consider the following code snippet:
const numbers = [1, 2, 3, 4, 5];
let sum = 0;
numbers.forEach(num => sum += num);
console.log(sum);
What will be the output of the console.log statement?
Consider the following code snippet:
const numbers = [1, 2, 3, 4, 5];
let sum = 0;
numbers.forEach(num => sum += num);
console.log(sum);
What will be the output of the console.log statement?