JavaScript Design Patterns

Published on

Constructor Pattern Object constructors are used to create specific types of objects. Examples: var newObject = {}; // or var newObject = Object.create( Object.prototype ); // or var newObject = new Object(); Module Pattern Provides both private and public encapsulation. Used to emulate the concept of classes. Options for implementing modules include: The Module pattern … Continue reading JavaScript Design Patterns