Home / CSE MCQs / Javascript MCQs :: Discussion

Discussion :: Javascript MCQs

  1. For the below mentioned code snippet:

    var o = new Object();

    The equivalent statement is:
  2. A.

    var o = Object();

    B.

    var o;

    C.

    var o= new Object;

    D.

    Object o=new Object();

    View Answer

    Workspace

    Answer : Option C

    Explanation :

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


Be The First To Comment