Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. The snippet that has to be used to check if “a” is not equal to “null” is

  2. A.

     if(a!=null)

    B.

     if (!a)

    C.

     if(a!null)

    D.

     if(a!==null)

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The not-equal operator !== compares o to null and evaluates to either true or false.


Be The First To Comment