In ES6 – Which keyword is used to initiate a class?

16. In ES6 – Which keyword is used to initiate a class?

  1. function
  2. class
  3. ReactClass
  4. 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.

Comments and Discussions!

Load comments ↻






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