$a or $b Alternative logical or Tags or comparison logical || Related $a && $b $a || $b !$a true or false; // true false or false; // false // Also works with truthy and falsy values: 1 or 0; // true 0 or ''; // false 1.0+