Skip to content

re: 4 Dangerous Problems in JavaScript Easily Solved by The Builder Design Pattern VIEW POST


I could see this being used in a big is project. What are the drawbacks of using an object as your Frog constructor parameter instead of changing the signature each time you want to add a new property?


I would just do that too. If you have more than about 4 args, just pass in an object

code of conduct - report abuse