A

Admin • 833K Points
Coach

Q. Which keyword is used to create a class in JavaScript?

  • (A) class
  • (B) function
  • (C) object
  • (D) new
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

The class keyword is used to declare a class in ES6 and above.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.