isFinite() function in JavaScript

The isFinite() function accepts a value and determines whether the given value is a finite number or not. If so, this method returns true else it returns false. You can also invoke this method using Number object.

Syntax

Its Syntax is as follows

isFinite(5655);

Example

 Live Demo


   JavaScript Example


   

Output

false
false
true
Updated on: 2020-06-25T13:07:19+05:30

87 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements