Q. What is the purpose of reduce()?

A
Filters elements
B
Reduces array to a single value
C
Sorts array
D
Maps elements
Solution:

reduce() reduces an array to a single value by applying a function.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!