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.

(function(){ Anonymous Module: var current Javascript Best Practices

149,832 views

Published on

(function(){
Anonymous Module:
var current = null;
Nothing is global.
var labels = [
‘home’:’home’,
‘articles’:’articles’,
‘contact’:’contact’
];
function init(){
};
function show(){
current = 1;
};
function hide(){
show();
};
})();

Published in: Technology
  • Login to see the comments

×