Given var x = 2;
The following
x == 2 && console.log('x is 2');
Is equivalent to
if (x == 2) console.log('x is 2');
Given var x = 2;
The following
x == 2 && console.log('x is 2');
Is equivalent to
if (x == 2) console.log('x is 2');
Be the first to comment on this post