What is the purpose of new keyword?

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.

Sizin İçin Seçtik  What does Extends mean in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *