The NaN property of the Global object represents the return value "NaN"(Not-a-Number). For instance when the Math interface is used on values that are not numeric, this value is returned to the script.
The following code example produces a NaN return value:
var x = "hi";
alert( Math.round(x) );