Why doesn't the code work?
-
let a = parseInt ();
console.log (a);
if (a === NaN) {
console.log (3);
}
why is the number 3 not displayed?JavaScript Olivia Lambert, Dec 17, 2019 -
due to the peculiarity of the meaning
you can read here about the feature and how you can check such values.
isNaNAnonymous
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!