The new Keywordin JavaScript
Mar 29 · 6 min read · If you've spent any time with JavaScript, you may have stumbled upon code that looks like this:
const dog = new Animal("Rex");
What's the new doing there? Why can't we just call the function normally