Javascript Design Patterns #2 - Singleton Pattern

Published: 24 August 2019
on channel: DevSage
66,269
1.3k

What is the Singleton design pattern?
The Singleton pattern allows you to limit the number of instances of a particular object to one. This single instance is called the singleton. Singletons reduce the need for global variables which is particularly important in JavaScript because it limits namespace pollution and associated risk of name collisions.


📚Materials/References:

GitHub Code: https://github.com/pkellz/devsage/blo...
"Design Patterns Explained Simply" Ebook: https://payhip.com/b/MLtJ

🌎 Find Me Here:

Twitter:   / realdevsage  
Ebooks: https://payhip.com/devsage
Discord:   / discord  
Merch: https://cottonbureau.com/people/devsage


Watch video Javascript Design Patterns #2 - Singleton Pattern online, duration hours minute second in high quality that is uploaded to the channel DevSage 24 August 2019. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 66,269 times and liked it 1.3 thousand visitors.