The new Keyword in JavaScript
What the new keyword does
It is used to create an instance of an object from constructor function.
function Person(name, age) {
this.name = name;
this.age = age;
}
const person1 = new Person("Joh
javacript-new.hashnode.dev2 min read