[JS] Why is NaN !== NaN true? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

[JS] Why is NaN !== NaN true?

console.log(NaN!==NaN); // returns true, but why?

12th Oct 2017, 6:30 PM
Pete Wright
Pete Wright - avatar
2 Réponses
+ 1
Thank you very much Ben! So as from what I read it is just a Definition, nothing logical. I'll keep that in mind. NaN == NaN => false
13th Oct 2017, 12:19 PM
Pete Wright
Pete Wright - avatar