From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Functions
The isNaN() function is used to check if a value is not a legal number, NaN (Not-a-Number).
| isNaN(value) |
| Parameter | Description |
|---|---|
| value | Required. The value to be tested |
ExampleCheck for NaN values:
The output of the code above will be:
Try it yourself » |
JavaScript Functions
From http://www.w3schools.com (Copyright Refsnes Data)