|Property/method value type:||An object whose type depends on the constructor|
|-||myObject = new anObject(someArguments)|
|Argument list:||aConstructor||An object constructor function|
|anObject||An object to clone|
|someArguments||A collection of initial values for the new instance|
The new operator creates a new instance of the object it is operating on.
As the object is created, the receiver's Construct method is called with no arguments passed to it. Any initialization is only carried out by the Construct method.
The associativity is from right to left.
Refer to the Operator Precedence topic for details of execution order.
Typically this would be used to instantiate core objects of the following types:
This can also be used to instantiate some host objects.
ECMA 262 edition 2 - section - 11.2.2
ECMA 262 edition 2 - section - 11.2.4
ECMA 262 edition 2 - section - 15
ECMA 262 edition 3 - section - 11.2.2