A

Admin • 833.24K Points
Coach

Q. What kind of an expression is “new Point(2,3)”?

  • (A) Primary Expression
  • (B) Object Creation Expression
  • (C) Invocation Expression
  • (D) Constructor Calling Expression
  • Correct Answer - Option(B)
  • Views: 22
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

An object creation expression creates a new object and invokes a function (called a constructor) to initialize the properties of that object. Object creation expressions are like invocation expressions except that they are prefixed with the keyword new.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.