Javascript Number.NaN

Introduction

The Number.NaN property represents Not-A-Number.

Equivalent of global NaN.

console.log(NaN === NaN);        // false
console.log(Number.NaN === NaN); // false
console.log(isNaN(NaN));         // true
console.log(isNaN(Number.NaN));  // true



PreviousNext

Related