Home » JavaScript » JavaScript Operators » Question
  1. What kind of an expression is “new Point(2,3)”?
    1. Invocation Expression
    2. Constructor Calling Expression
    3. Primary Expression
    4. Object Creation Expression
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.