A
Q. What kind of an expression is “new Point(2,3)”?
- Correct Answer - Option(D)
- Views: 25
- Filed under category JavaScript
- Hashtags:
A
The expression new Point(2, 3) is an example of an object creation expression. It uses the new keyword to create an instance of the Point class (or constructor function), initializing it with the arguments 2 and 3. This is typically used to instantiate new objects in object-oriented programming.
You must be Logged in to update hint/solution
Be the first to start discuss.
Discusssion
Login to discuss.