Basic Javascript (68/111) | Comparisons with the Logical Or Operator | freeCodeCamp

preview_player
Показать описание
Basic Javascript (68/111) | Comparisons with the Logical Or Operator | freeCodeCamp

The logical or operator (||) returns true if either of the operands is true. Otherwise, it returns false.

The logical or operator is composed of two pipe symbols: (||). This can typically be found between your Backspace and Enter keys.

Рекомендации по теме