JavaScript Global Functions
The isFinite() function determines whether a number is a finite, legal number.
Tip: This function returns false if the value is +infinity, -infinity, or NaN.
| Parameter | Description |
|---|---|
| value | Required. The value to be tested |
![]()
The isFinite() function is supported in all major browsers.
Check whether a number is a finite, legal number:
The output of the code above will be:
JavaScript Global Functions
Your message has been sent to W3Schools.