Which of the following is a built-in higher-order function in JavaScript?

  • map()
  • add()
  • concat()
  • subtract()
The map() function in JavaScript is a built-in higher-order function that is commonly used to transform elements of an array. It takes a function as an argument and applies it to each element of the array.
Add your answer
Loading...

Leave a comment

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