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 odpowiedzi
+ 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