The new Keyword in JavaScript: How Objects Are Created (Step-by-Step)
If you’ve ever seen code like this in JavaScript:
const user = new User("Babita");
You might wonder:
“What exactly does new do behind the scenes?”
It may look simple — but a lot is happening intern
new-keyword-explaination.hashnode.dev3 min read