Previous PageNext Page

7.19 Global Object

The Global object is an intrinsic object whose purpose is to collect global methods into one object.
 

Methods

escape
 
Encodes String objects so that they can be read on all computers.
 
eval
 
Evaluates JScript code.
 
isFinite
 
Determines if a supplied number is finite.
 
isNaN
 
Determines is a supplied number is the reserved value NaN (Not a Number).
 
parseFloat
 
Converts strings to floating point numbers.
 
parseInt
 
Converts strings to integer numbers.
 
unescape
 
Decodes String objects encoded with the escape method.
 

Properties

Infinity
 
An initial value of Number.POSTITIVE_INFINITY.
 
NaN
 
An initial value of Number.NaN.
 

Syntax

The Global object has no syntax. You call its methods directly.
 

Remarks

The Global object is never used directly, and cannot be created using the new operator. It is created when the scripting engine is initialized, thus making its methods and properties available immediately.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page