/*
* If {condition} do {action}
* */
if(condition) num++;

// shorthand
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Logical_AND
condition && num++;

/*
 * Even or odd
 * */
number % 2

// shorthand
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Bitwise_AND
number & 1;


/*
* Short-circuiting
* If {condition} do {action}
* */
if(condition) num++;

// shorthand
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Logical_AND
condition && num++;

/*
 * Even or odd
 * */
number % 2

// shorthand
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Bitwise_AND
number & 1;


Update shorthands.js