The `NEW` keyword in JavaScript
welcome to the blog:
why this even exist in language ?
Problem:
lets say you have funcrion
function User(name) {
this.name = name;
}
const u1 = User(`dushyant`);
what do you expect
expected - name: `
dushyantxcode.hashnode.dev5 min read