Previous PageNext Page

new Operator

Creates a new object.

Syntax

new constructor[(arguments)]

Arguments

constructor
The constructor argument calls object's constructor. The parentheses can be omitted if the constructor takes no arguments.

Remarks

The new operator performs the following tasks:

These are examples of valid uses of the new operator:

my_object = new Object;

my_array = new Array();

my_date = new Date("Jan 5 1996");


Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page