DEV Community

loading...

Discussion on: Design Patterns for Developers using JavaScript - Part Two

Collapse
morganlegal profile image
Legal

Is it me or the singleton pattern is embedded twice? Once in the Singleton Pattern section and once in the Constructor Pattern?

Collapse
olivermensahdev profile image
Oliver Mensah Author

From my end they are different but the constructor has two different codes; one using prototype and the other using classes