A

Admin • 833K Points
Coach

Q. For the below mentioned code snippet:
var o = new Object();
The equivalent statement is:

  • (A) var o = Object();
  • (B) var o;
  • (C) var o= new Object;
  • (D) Object o=new Object();
  • Correct Answer - Option(C)
  • Views: 26
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

You can always omit a pair of empty parentheses in a constructor invocation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.