Q. What is the purpose of reduce()?
Solution:
reduce() reduces an array to a single value by applying a function.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
reduce() reduces an array to a single value by applying a function.
Strengthen Your Practice with our comprehensive question bank.