You should use the strict comparison :
var myVar = 0;
myVar === 0;//returns true
myVar === false;//returns false
1
solved jQuery variable with 0 (zero) value [closed]
You should use the strict comparison :
var myVar = 0;
myVar === 0;//returns true
myVar === false;//returns false
1
solved jQuery variable with 0 (zero) value [closed]