there is a difference between infinity and not a number, NaN isn't event equal to itself, in nodejs you get:
> Infinity + Infinity
Infinity
> Infinity - Infinity
NaN
> Infinity == Infinity
true
> NaN == NaN
false
The fun thing: NaN to the power of zero (because technically the type of NaN is a ... number) > NaN ** 0
1
> typeof(NaN)
'number'
By the same logic, NaN is also even because > NaN + NaN
NaN
but i think it's better not explain that to your six year old...