How to represent a Not a Number in Javascript?

isNaN() function
isNaN function does the data type conversion
NaN

NaN is short for Not a Number. In JavaScript, dividing a number by 0 returns NaN.

Any operation involving NaN always returns NaN.