JavaScript 1.3 Overview, Part I: Top-Level Properties and Functions - Doc JavaScript
Top-Level Properties and Functions
JavaScript 1.3 defines three properties of the global
object, NaN
, Infinity
, and undefined
.
isFinite()
is a new global function. It is a top-level function of the global
object. Use this function to determine if a number is a finite one. If the argument in isFinite(number)
is NaN
, positive infinity, or negative infinity, the function returns false
. In all other cases, it returns true
. For example, isFinite(parseInt("a"))
returns false
, while isFinite(parseInt(5))
returns true
.
Created: September 14, 1998
Revised: September 14, 1998
URL: https://www.webreference.com/js/column25/nan.html