In JavaScript the logical AND operator && returns the second operand if the first operand is truthy

true && "dog"
// returns "dog"
 
[] && "dog"
// returns "dog"
 

If the first object is falsy, it returns that object

false && "dog");
// returns false
 
0 && "dog");
// returns 0