In a web application, how can higher-order functions be used to enhance event handling?

  • reduce
  • map
  • forEach
  • filter
The correct option is forEach. forEach is commonly used for iterating over elements in an array, making it suitable for enhancing event handling in a web application where actions need to be performed on each element.
Add your answer
Loading...

Leave a comment

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