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 is the name of a concrete class that implements statement and is included in the core JDK?

Leave a Reply

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