A native object is any object supplied by the interpreter that is not considered part of the hosting environment.
Some native objects are built in to the core interpreter while others may be constructed by executing script code. These are sometimes called built-in objects.
Here is a list of native object types that all ECMA compliant interpreters must support:
Array
Boolean
Date
Function
Math
Number
Object
String
The Global object is added to the scope chain of a program when it commences execution. Other built-in objects are accessible as initial properties of the Global object. Some of these are added as core functionality and are available in all implementations. Others are added as host objects defined differently for each implementation.
Many built-in objects are functions. They can be invoked with arguments. Some of these are constructors, most are associated with objects so that they can be used as methods. These are functions that are intended to be used with the new operator.
ECMA 262 edition 2 - section - 4.3.6
ECMA 262 edition 2 - section - 8.6.2
ECMA 262 edition 2 - section - 15
ECMA 262 edition 3 - section - 4.3.6
ECMA 262 edition 3 - section - 8.6.2
ECMA 262 edition 3 - section - 15
Prev | Home | Next |
Native feature | Up | navigate() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |