New keyword in JavaScript is used to create an instance of an object that has a constructor function . On calling the constructor function with ‘new’ operator, the following actions are taken: A new empty object is created.
New keyword in JavaScript is used to create an instance of an object that has a constructor function . On calling the constructor function with ‘new’ operator, the following actions are taken: A new empty object is created.