DEV Community

Discussion on: JavaScript Design Patterns - Factory Pattern

Collapse
 
macsikora profile image
Pragmatic Maciej

It depends what language are you used to. Looking on the example, looks like something very OOP like Java or C#. Not like what you are writing is wrong. Just you need to take into consideration that every time you don't need to use this probably you don't need a class. Keep up with a good work!

Thread Thread
 
kristijanfistrek profile image
KristijanFištrek

Thank you! \m/