A function that takes another function as an argument is called a __________ function.

  • Callback
  • Higher-order
  • Nested
  • Recursive
In JavaScript, a higher-order function is a function that takes one or more functions as arguments or returns a function. It enables the use of functions as data, promoting a more functional and modular approach.
Add your answer
Loading...

Leave a comment

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