DEV Community

Discussion on: Singleton in JavaScript

Collapse
 
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.

Collapse
 
tomekbuszewski profile image
Tomek Buszewski

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