DEV Community


Discussion on: Singleton in JavaScript

jochemstoel profile image
Jochem Stoel

You should stop using the word class in your class name. It is redundant to use class twice. It is not a class either, once instantiated it is an instance. Just call it class Singleton.

tomekbuszewski profile image
Tomek Buszewski Author

Using the name is purely demonstrational, but I'll keep in mind to omit it next time.