Understanding the new Keyword in JavaScript
When you see the new keyword in JavaScript, it usually appears with functions.
At first, it feels confusing.
But the idea is simple:
new is used to create objects from a function.
It takes a function
understanding-javascript-methods.hashnode.dev3 min read