Java Reference
In-Depth Information
The top‐level properties were introduced in JavaScript 1.3, but in previous versions, Infinity and
NaN existed as properties of the Number object.
Top‐Level Properties
property
introduced
description
JavaScript 1.3
Returns infinity.
Infinity
JavaScript 1.3
Returns a value that is not a number.
NaN
JavaScript 1.3
Indicates that a value has not been assigned to a variable.
undefined
Top‐Level Functions
function
introduced
description
JavaScript 1.5
Used to decode a URI encoded with
encodeURI() .
decodeURI()
JavaScript 1.5
Used to decode a URI encoded with
encodeURIComponent() .
decodeURIcomponent()
JavaScript 1.5
Used to compose a new version of a complete
URI, replacing each instance of certain
characters. It is based on the UTF‐8 encoding of
the characters.
encodeURI()
JavaScript 1.5
Used to compose a new version of a complete
URI by replacing each instance of the
specified character with escape sequences.
Representation is via the UTF encoding of the
characters.
encodeURIComponent()
JavaScript 1.0
Used to encode a string in the ISO Latin‐1
character set; for example, to add to a URL.
escape()
JavaScript 1.0
Returns the result of the JavaScript code, which
is passed in as a string parameter.
eval()
JavaScript 1.3
Indicates whether the argument is a finite
number.
isFinite()
JavaScript 1.1
Indicates if the argument is not a number.
isNaN()
JavaScript 1.2
Converts an object to a number.
Number()
JavaScript 1.0
Parses a string and returns it as a floating‐point
number.
parseFloat()
continues
Search WWH ::




Custom Search