Home »
MCQs »
ReactJS MCQs
In ES6 – Why arrow functions are used?
21. In ES6 – Why arrow functions are used?
- To access pointer variable
- To access variable of a class
- Both A. and B.
- Write shorter function syntax
Answer: D) Write shorter function syntax
Explanation:
In ES6 – The arrow functions are used to write shorter function syntax.