![]() |
VOOZH | about |
The JavaScript isFinite() function is used to check whether a number is a finite, legal number or not. It returns true for all the values except +infinity, -infinity, or NaN.
Syntax:
isFinite(value)Parameters: This method takes a single parameter as mentioned above and discussed below:
Return Value: It returns a Boolean value i.e. returns false if the value is +infinity, -infinity, or NaN, otherwise returns true.
Example: In this example, we will check for some numbers if they are finite or not using the isFinite() function of javascript.
We have a complete list of Javascript Functions, to check those please go through this Javascript Function Complete reference article.