Name
Global: the global object — ECMAScript v1: Object → Global
Synopsis
this
Global Properties
The global object is not a class, so the following global
properties have individual reference entries under their own
names. That is, you can find details on the undefined
property listed under the name
undefined
, not under Global.undefined
. Note that all top-level
variables are also properties of the global object:
-
Infinity
A numeric value that represents positive infinity.
-
java
A JavaPackage that represents the java.* package hierarchy
-
NaN
The not-a-number value.
-
Packages
The root JavaPackage object.
-
undefined
The
undefined
value.
Global Functions
The global object is an object, not a class. The global
functions listed here are not methods of any object, and their
reference entries appear under the function name. For example,
you’ll find details on the parseInt(
)
function under parseInt(
)
, not Global.parseInt(
)
:
-
decodeURI( )
Decodes a string escaped with
encodeURI( )
.-
decodeURIComponent( )
Decodes a string escaped with
encodeURIComponent( )
.-
encodeURI
Encodes a URI by escaping certain characters.
-
encodeURIComponent
Encodes a URI component by escaping certain characters.
-
escape( )
Encodes a string by replacing certain characters with escape sequences.
-
eval( )
Evaluates a string of JavaScript code and returns the result.
-
getClass( )
Returns the JavaClass of a JavaObject
-
isFinite( )
Tests whether a value is a finite number.
-
isNaN( )
Tests whether a value is the not-a-number value.
-
parseFloat( ...
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.