Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

module = function(){ Revealing Module Javascript Best Practices

150,147 views

Published on

module = function(){
Revealing Module
var current = null;
var labels = [
Pattern:
‘home’:’home’,
Keep consistent
‘articles’:’articles’,
syntax and mix and
‘contact’:’contact’
];
match what to make
function init(){
global.
};
function show(){
current = 1;
};
function hide(){
show();
};
return{init:init,show:show,current:current}
}();
module.init();

Published in: Technology
  • Login to see the comments

×