JavaScript Global Functions
The isNaN() function determines whether a value is an illegal number (Not-a-Number).
This function returns true if the value is NaN, and false if not.
| Parameter | Description |
|---|---|
| value | Required. The value to be tested |
![]()
The isNaN() function is supported in all major browsers.
Check whether a number is an illegal number:
The output of the code above will be:
JavaScript Global Functions
Your message has been sent to W3Schools.