Previous PageNext Page

7.8 JScript Object

The JScript Object object provides functionality common to all JScript objects.
 

Methods

valueOf
 
Returns the primitive value of the specified object.
 
toString
 
Returns a string representation of an object.
 

Properties

constructor
 
The function that creates an object.
 
prototype
 
A reference to the prototype for a class of objects.
 

Syntax

new Object([value])

Arguments

value
Used if you want to convert a primitive data type (number, Boolean, string, or function) into an object. If omitted, an object with no contents is created. Optional.

Remarks

The Object object is contained in all other JScript objects--all of its methods and properties are available in all other objects. The methods can be redefined in objects you define, and are called by JScript at appropriate times. The toString method is an example of a frequently redefined Object method.
 
In this language reference, the description of each Object method includes both default and object-specific implementation information for the intrinsic JScript objects.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page