var suffix = "M";
console.log(Number(suffix));
if(Number(suffix) !== NaN) { console.log("this should not be printed");}
The if condition should return false, but it is returning true. why?
var suffix = "M";
console.log(Number(suffix));
if(Number(suffix) !== NaN) { console.log("this should not be printed");}
The if condition should return false, but it is returning true. why?