JavaScript Number isFinite() method

The JavaScript number isFinite() method is used to find whether a number is a finite number or not.

Syntax:

Number.isFinite(n) 

Parameters
n: It represents the number on which finite check have to be inform.

Returns
It returns true if the specified number is a finite number or not.

Example

<!DOCTYPE html>
<html>
<body>
<script>  
var n= 12.334;    
document.writeln(Number.isFinite(n));  
</script>  
</body>
</html>

Output

true
Please Share