O'Reilly logo

JavaScript® Programmer's Reference by Alexei White

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. JavaScript Global Objects

There are quite a number of global objects available in JavaScript. Some of these are standard ECMAScript classes such as Array and Boolean, but some are proprietary objects like Enumerator and VBArray. Be sure to read Chapter 6: The Global and Object Objects for more information on global objects.

Table B.1. List of Objects

Object

Support

Description

ActiveXObject

IE3+

Enables and returns a reference to an ActiveX object.

Array

CH1+, FF1+, IE4+, NN3+, O3+, SF1+

Provides for arrays of any data type.

Boolean

CH1+, FF1+, IE4+, NN3+, O3+, SF1+

Provides for true and false values.

Date

CH1+, FF1+, IE3+, NN2+, O3+, SF1+

An object describing localized date and time values as well as providing a means for working with them.

Debug

IE4+

An Internet Explorer-specific object for logging messages to a debug console.

Enumerator

IE4+

Enables enumeration of items in a collection. VBScript Only.

Error

CH1+, FF1+, IE5+, NN6+, O7+, SF1+

The parent object for all exceptions.

Function

CH1+, FF1+, IE3+, NN2+, O3+, SF1+

Represents all functions.

JSON

FF3.5+, IE8+

Provides methods to convert JavaScript values to and from the JavaScript Object Notation (JSON) format. This is supported in Internet Explorer 8 and Firefox 3.5.

Math

CH1+, FF1+, IE3+, NN2+, O3+, SF1+

A built-in object containing properties and methods useful in mathematical computation.

Number

CH1+, FF1+, IE3+, NN2+, O3+, SF1+

Represents all numeric types including integers and floating point values.

Object

CH1+, FF1+, IE3+, NN3+, O3+, SF1+

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required