what is nan javascript code example
Example 1: nan javascript
// NaN: Not a Number in javascript
console.log(parseInt('1.23')); // 1.23
console.log(parseInt('something')); // NaN
Example 2: javascript nan
NaN = Not a number.
Example 3: nan in js
var val = Number.NaN;