12 Good JavaScript Shorthand Techniques
Yuri Ramos
1K58

Another good one when an “if” statement trigger a function

Longhand:

if(c){

x();

}

ShortHand:

c && x();

Also very good post very helpful thanks :D

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.