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.

demo = { Object Literal: Javascript Best Practices

150,031 views

Published on

demo = {
Object Literal:
current:null,
Everything is
labels:[
contained but can be
‘home’:’home’,
‘articles’:’articles’,
accessed via the
‘contact’:’contact’
object name.
],
init:function(){
},
show:function(){
demo.current = 1;
},
hide:function(){
demo.show();
}
}

Published in: Technology
  • Login to see the comments

×