Hi Folks,
Object literal notation
Object literal notation, which we also cover in the Module pattern section, can be thought of as an object containing a collection of key-value pairs with a colon separating each pair of keys and values, where keys can also represent new namespaces.
eg:
var appMyapp = {};
appMyapp.foo = function(){
return "bar";
}
appMyapp.utills = fuction(){
toString:function(){
},
}
Object literal notation
Object literal notation, which we also cover in the Module pattern section, can be thought of as an object containing a collection of key-value pairs with a colon separating each pair of keys and values, where keys can also represent new namespaces.
eg:
var appMyapp = {};
appMyapp.foo = function(){
return "bar";
}
appMyapp.utills = fuction(){
toString:function(){
},
}
Comments
Post a Comment