logo

Crowdly

Browser

Add to Chrome

Context: const arr = [1, 2, 3]; const total = arr.reduce((sum, num) => sum + n...

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

Context:

const arr = [1, 2, 3];

const total = arr.reduce((sum, num) => sum + num, 0);

console.log(total);

What is the output?

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