DEV Community 👩‍💻👨‍💻

Discussion on: The Three Little Creational Patterns - A Design Patterns Intro

bulatoviczeljko profile image
Zeljko Bulatovic


Great post! You have one issue:
const smallStickHouse = new StickHousePrototype(15),
largeStickHouse = new StickHousePrototype(50);

StickHousePrototype constructor takes two parameters :)

maxwell_dev profile image
Max Antonucci Author

Ah good catch! The extra parameter was a mistake, it should only take one and then it calculates the other. All fixed!