Home »
MCQs »
ReactJS MCQs
In ES6 – Which keyword is used to initiate a class?
16. In ES6 – Which keyword is used to initiate a class?
- function
- class
- ReactClass
- ReactClassJs
Answer: B) class
Explanation:
In ES6 – A class is a type of function, but instead of using the keyword function to initiate it, we use the keyword class.