In ES6 – Why arrow functions are used?

21. In ES6 – Why arrow functions are used?

  1. To access pointer variable
  2. To access variable of a class
  3. Both A. and B.
  4. Write shorter function syntax

Answer: D) Write shorter function syntax

Explanation:

In ES6 – The arrow functions are used to write shorter function syntax.


Comments and Discussions!









Copyright © 2023 www.includehelp.com. All rights reserved.