Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Object

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

Methods: JScript Object

JScript Object valueOf Method

Returns the primitive value of the specified object.

JScript Object toString Method

Returns a string representation of an object.

Properties: JScript Object

JScript Object constructor Property

The function that creates an object.

JScript Object prototype Property

A reference to the prototype for a class of objects.

Syntax: JScript Object

new Object([value])

Arguments: JScript Object

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: JScript Object

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 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.