DEV Community

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

Collapse
 
bulatoviczeljko profile image
Zeljko Bulatovic

Hi,

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

StickHousePrototype constructor takes two parameters :)

Collapse
 
maxwell_dev profile image
Max Antonucci

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