new Keyword

Syntax

new constructor[([arguments])]

Parameters

constructor
A class or function that specifies the type of the object instance.

arguments
A list of values that the constructor will be called with. new Foo is equivalent to new Foo(), i.e. if no argument list is specified, Foo is called without arguments.