Java Reference
In-Depth Information
Property
Introduced
Description
MIN_VALUE
JavaScript 1.1
Returns the smallest number that can be represented in
JavaScript (5E-324).
NaN
JavaScript 1.1
Returns a value that is “not a number.”
NEGATIVE_
INFINITY
JavaScript 1.1
Returns a value representing negative infi nity.
POSITIVE_
INFINITY
JavaScript 1.1
Returns a value representing (positive) infi nity.
prototype
JavaScript 1.1
Returns the prototype for the object, which can be used to
extend the object's interface.
Methods
Method
Introduced
Description
toExponential(fractionDigits)
JavaScript 1.5
Returns a string containing the
exponent notation of a number. The
parameter should be between 0 and 20
and determines the number of digits
after the decimal.
toFixed([digits])
JavaScript 1.5
The format number for digits num-
ber of digits. The number is rounded
up, and 0 s are added after the decimal
point to achieve the desired decimal
length.
toPrecision([precision])
JavaScript 1.5
Returns a string representing the
Number object to the specifi ed
precision.
toString()
JavaScript 1.1
Converts the Number object into a
string.
valueOf()
JavaScript 1.1
Returns the primitive value of the
Number object.
Object
Object is the primitive type for JavaScript objects, from which all other objects are descended (that is,
all other objects inherit the methods and properties of the Object object). Introduced in JavaScript 1.0,
an Object object can be created using the Object constructor as follows:
var obj = new Object();
Search WWH ::




Custom Search