Logical operators "short-circuit", meaning they stop as soon as the result is determined.
With &&, if the first value is falsy, the second isn't evaluated:
false && console.log("Skipped") // Nothing prints
With ||, if the first value is truthy, the second isn't evaluated:
true || console.log("Skipped") // Nothing prints
This matters when the second operand has side effects like function calls.