Arrow functions are not suitable for defining _________ functions.

  • async
  • generator
  • anonymous
  • recursive
Arrow functions do not work well for defining generator functions. Generator functions use the function* syntax and rely on the yield keyword, which doesn't behave as expected in arrow functions. Therefore, the correct option is generator.
Add your answer
Loading...

Leave a comment

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