There are several ways in which NaN can happen: Division of zero by zero Dividing an infinity by an infinity Multiplication of an infinity by a zero Any operation in which NaN is an operand Converting ...
In JavaScript, NaN is a special value that represents an invalid numerical result. The peculiar behavior of NaN is that it's never equal to itself, neither using loose (==) nor strict (===) equality.
Reason: NaN means "Not a Number," but JavaScript considers it a special value of the number data type. So, typeof NaN returns "number" because its meaning is invalid numerical result, not a separate ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results