JS Dsgn Patterns 20 Patterns for Advancing Your JS Skills: Singleton Dsgn Pattern | packtpub.com

338 views · Published 4 November 2015 · 13:32 · Indexed 29 October 2026

Channel: Packt · 2015 · Science & Technology

Watch on YouTube

Part of 'JavaScript Design Patterns 20 Patterns for Advancing Your JavaScript Skills' video series. For full Course visit:

http://bit.ly/20tpuVA

The Singleton design pattern restricts instantiation to a single instance and enables a delayed instantiation. This enables a public constant API to retrieve the instance while validating that only one instance of it can ever be created. This makes it easy to share the object with multiple objects. 
• Check out the delayed instantiation of an object 
• Take a look at the constant interface to gain access to the object 
• Check out how only one instance of the object is needed 





For the latest web development video tutorials, please visit
http://bit.ly/1KYwKQ5


Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

More from this channel