✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the output?
const nums = [2, 3, 4];
const product = nums.reduce((acc, n) => acc * n, 1);
console.log(product);
]]>