The new operator is used to create an instance of an object. To create an object, the new operator is followed by the constructor method.
var department = new Object(); var books = new Array("C++", "Perl", "Java"); var day = new Date(“December 1, 2017");
The variable contains a reference to the new object. The properties assigned to the object are not variables and are not defined with the var keyword.
Book name is : Perl Book author is : Tutorialspoint