Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

isNaN

The isNaN() function of the Global object is used to determine whether or not a value is Not-a-Number. It returns a boolean(true/false) value to the script.

SyntaxisNaN( value )

Parameters

value The value to be checked.

Examples

alert( isNaN("Hi") ); /* true */ alert( isNaN(7.5) ); /* false */ alert( isNaN(-2) ); /* false */

JavaScript

Methods

addEventListeneralertaveragebackblurconcatcreatedecodeURIdecodeURIComponentencodeURIencodeURIComponentevaleveryfilterforwardgoisArrayisFiniteisNaNjoinparseFloatparseIntpoppushpushStatereducereplaceStatereverseshiftshuffleslicesomesortspliceunshiftwrite