DEV Community

loading...

Discussion on: Singleton in JavaScript

Collapse
smalluban profile image
Dominik Lubański

I forgot about constructors prototype chain :P

Here you have working example:

Thread Thread
tomekbuszewski profile image
Tomek Buszewski Author

This is not a singleton class now :) But nevertheless, excellent example.