-4

How to check the value is null and zero in java script

var result;
if(result!==null) 

I had tried please specify to check whether the value is zero

Naveen kumar
  • 3
  • 1
  • 3

1 Answers1

-1

You can use something like

if((x >= 0) && (typeof(result) == "number"))

Seems to have been answered here ::: Check for NaN, null and >=0 in one condition

WarPro
  • 350
  • 3
  • 5