How do higher-order functions benefit from using arrow functions introduced in ES6?

  • They have shorter syntax and retain the this value from the enclosing scope.
  • They can only be used as callbacks.
  • They have access to the global this value.
  • They are limited to synchronous operations.
Arrow functions have a concise syntax and automatically capture the this value from the surrounding context, beneficial in higher-order functions.
Add your answer
Loading...

Leave a comment

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