![]() ![]() | |
Flash Player 5.
isNaN(expression)
expression A Boolean, variable, or other expression to be evaluated.
A Boolean value.
Function; evaluates the parameter and returns true if the value is not a number (NaN), indicating the presence of mathematical errors.
The following code illustrates return values for the isNaN function.
isNaN("Tree")
// returns true
isNaN(56)
// returnsfalseisNaN(Number.POSITIVE_INFINITY)//returnsfalse
![]() ![]() | |