Javascript - Number NaN Property

The NaN property represents "Not-a-Number" value. This property indicates that a value is not a legal number.

Description

The NaN property represents "Not-a-Number" value. This property indicates that a value is not a legal number.

The NaN property is the same as the Number.NaN property.

You can use the isNaN() global function to check if a value is a NaN value.

Syntax

Number.NaN

Return

NaN

Demo

console.log(Number.NaN);
console.log(NaN);

Result