Examveda
Examveda

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();

Answer: Option C

Solution(By Examveda Team)

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

This Question Belongs to Javascript >> Array And Function

Join The Discussion

Related Questions on Array and Function