What is benifit of using higher order functions?

Member

pink

by pink , in category: Technology , a month ago

What is benifit of using higher order functions?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by leonor , a month ago

Higher order functions are those in which you can pass a function as an argument and returns a function as a result. There are many benefits to using them:

  • They provide flexibility but compromises with complexity.
  • They are useful in asynchronous communications in which simple functions can’t be used.
  • They improve the readability of code and decreases the length of the code.