This javascript tutorial covers the javascript object literal pattern for web developers. We'll cover how to build a basic module in javascript.
The object literal pattern is also shown in this great e-book by Addy Osmani: http://addyosmani.com/resources/essentialjsdesignpatterns/book/#modulepatternjavascript
The simplest pattern for modular javascript is the object literal pattern - it adds all values and methods on a single object, thus encapsulating all of the module's function into one ob
آی-ویدئو