JavaScript Number.isFinite() Method

You are Here:

JavaScript Number.isFinite() Method

The Number.isFinite() method returns a Boolean value indicates whether the passed value is a finite number.


HTML Online Editor
<!DOCTYPE html> <html> <body> <script> var result = Number.isFinite(55/0); document.write(result); </script> </body> </html>



Parameter Values

valueRequiredThe value to be tested for being finite.

Return Value

trueIf the given value is finite.
falseIf the given value is infinite.

More Examples


HTML Online Editor
<!DOCTYPE html> <html> <body> <script> document.write(Number.isFinite(25) +": 25 <br>"); document.write(Number.isFinite(0) +": 0<br>"); document.write(Number.isFinite(2e64) +": 2e64 <br>"); document.write(Number.isFinite(4 - 2) +": 4 - 2<br><br>"); document.write(Number.isFinite('65') +": '65'<br>"); document.write(Number.isFinite(55 / 0) +": 55 / 0<br>"); document.write(Number.isFinite(Infinity) +": Infinity<br>"); document.write(Number.isFinite(-Infinity) +": -Infinity<br>"); document.write(Number.isFinite(null) +": null<br>"); </script> </body> </html>


Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in JavaScript.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author