what does nan mean 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: nan in js
var val = Number.NaN;
// NaN: Not a Number in javascript
console.log(parseInt('1.23')); // 1.23
console.log(parseInt('something')); // NaN
var val = Number.NaN;