0
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?

N V R N SATISH
  • 219
  • 3
  • 7

0 Answers0