logo

Crowdly

Browser

Add to Chrome

Context: Reducing an array. What is the output? const nums = [2, 3, 4]; cons...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Context:

Reducing an array.

What is the output?

const nums = [2, 3, 4];

const product = nums.reduce((acc, n) => acc * n, 1);

console.log(product);

]]>
More questions like this

Want instant access to all verified answers on moodle.ncst.edu.bh?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome