// Boring if (isThisAwesome) { alert('yes'); // it's not } // Awesome isThisAwesome && alert('yes'); // Also cool for guarding your code var aCoolFunction = undefined; aCoolFunction && aCoolFunction(); // won't run nor crash