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.

if(v){ var x = v; Javascript Best Practices

150,054 views

Published on

if(v){
var x = v;
} else {
var x = 10;
}
is the same as
var x = v || 10;

Published in: Technology
  • Login to see the comments

×