0
Why is NaN Considered a number While using the typeof Operator?? NaN=(Not A Number)
2 Réponses
+ 6
NaN is simply the representation of an indefinite result. That means that complex numbers or things like 0 ÷ 0, ∞ * 0, etc. are represented as NaN.
It is still a numeric data type, but it is undefined as a real number. In the same way it is used to represent anything that is not within the definition of what is number.
+ 1
thank you