Choose the correct snippet from the following to check if the variable "a" is not equal the "NULL":

B)if (a!)

the correct ans is D

a option is right
because it doing comparision between them

1 Like

option d if (a!=null)

i think option D is correct

answer is option (A). bcz !== will check the value as well as data of a

1 Like

i got it mam it check both values and datatype