A

Admin • 833K Points
Coach

Q. Which method is automatically called when a new object is created?

  • (A) constructor
  • (B) init
  • (C) create
  • (D) build
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

The constructor() method is automatically invoked when an instance is created.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.