The new Keyword in JavaScript
Imagine you are building a simple web game. You need to create a horde of enemies. You could manually create an object for every single one:
const goblin1 = { name: 'Goblin', hp: 50, level: 1 };
const
dev-with-divyansh.hashnode.dev4 min read