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