Examveda
Examveda

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

A. if(a!=null)

B. if (!a)

C. if(a!null)

D. if(a!==null)

Answer: Option D

Solution(By Examveda Team)

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

This Question Belongs to Javascript >> Basic And Variables

Join The Discussion

Related Questions on Basic and Variables