FlashcardIntermediate
NaN is never equal to itself: use Number.isNaN
NaN is the only JavaScript value not equal to itself, so use Number.isNaN to detect it.
Question
Why does NaN === NaN return false, and how do you reliably check for NaN?
Click to reveal answer