JavaScript Comparison

The || Operator (Logical OR)

The || returns true if one or both expressions are true, otherwise it returns false.