Javatpoint Logo
Javatpoint Logo

JavaScript Number isFinite() method

The JavaScript number isFinite() method determines whether the given value is a finite number. It returns true if the value is a finite number, otherwise it returns false.

Syntax

The isFinite() method is represented by the following syntax:

Parameter

num - A number to be checked.

Return

A Boolean value.

JavaScript Number isFinite() method example

Here, we will understand isFinite() method through various examples.

Example 1

Let's see a simple example of isFinite() method.

Test it Now

Output:

true true true 

Example 2

In this example, we will use isFinite() method with negative numbers.

Test it Now

Output:

true false 

Example 3

Let's see isFinite() method with some different test cases.

Test it Now

Output:

false false false 

Next TopicJavaScript Number





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA