Design Patterns - Singleton
Singleton classes can only be initiated once.
The Singleton pattern ensures the class has only one instance and provides global point of access to it.
Singleton is an anti-pattern and should be avoided in javascript.
Note- In other programming langua...
neelchikhal.hashnode.dev3 min read