The new Keywordin JavaScript
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
Mar 29, 20266 min read1