The Array method __________ is an example of a higher-order function that takes a function as its argument.

  • Map
  • Filter
  • Reduce
  • Concat
The reduce method in JavaScript arrays is a higher-order function that takes a callback function to accumulate the elements of an array into a single result. It is commonly used for tasks like summing or product accumulation.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *