value is nan javascript code example
Example 1: javascript check if is nan
function isNaN(x) {
return x !== x;
};
isNaN(NaN);//true
Example 2: javascript nan
NaN = Not a number.
function isNaN(x) {
return x !== x;
};
isNaN(NaN);//true
NaN = Not a number.