[This is preliminary documentation and subject to change]
Creates a new object.
new constructor[(arguments)]
constructor
Required. Object's constructor. The parentheses can be omitted if the constructor takes no arguments.
arguments
Optional. Any arguments to be passed to the new object's constructor.
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");