[JS] Why is NaN !== NaN true? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
+ 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