About 89,100 results
Open links in new tab
  1. Logical OR (||) - JavaScript | MDN

    Jul 8, 2025 · The logical OR (||) (logical disjunction) operator for a set of operands is true if and only if one or more of its operands is true. It is typically used with boolean (logical) values.

  2. Logical OR operator in Programming - GeeksforGeeks

    Mar 26, 2024 · The Logical OR operator is a fundamental concept in programming that evaluates to true if at least one of the conditions it connects is true. It's represented by the symbol ||.

  3. Boolean logical operators - AND, OR, NOT, XOR

    Jan 24, 2026 · The conditional logical OR operator ||, also known as the "short-circuiting" logical OR operator, computes the logical OR of its operands. The result of x || y is true if either x or y evaluates …

  4. JavaScript Logical Operators - W3Schools

    JavaScript Logical OR The || operator returns true if one or both expressions are true, otherwise false:

  5. Difference between logical operators AND and OR - freeCodeCamp.org

    Jun 27, 2023 · AND && and OR || are logical operators in JavaScript which you can use for performing different logical expressions. In this article, I'll explain the difference between them.

  6. JavaScript OR (||) variable assignment explanation - Stack Overflow

    The boolean operators in JavaScript can return an operand, and not always a boolean result as in other languages. The Logical OR operator (||) returns the value of its second operand, if the first one is …

  7. An Introduction to JavaScript Logical Operators By Examples

    The AND operator (&&) is applied to two Boolean values and returns true if both are true. The OR operator (||) is applied to two Boolean values and returns true if one of the operands is true.

  8. Logical operators - The Modern JavaScript Tutorial

    Jun 5, 2022 · In classical programming, the logical OR is meant to manipulate boolean values only. If any of its arguments are true, it returns true, otherwise it returns false.

  9. Logical operators - The complete JavaScript Tutorial

    The logical OR operator in JavaScript, as well as in many other programming languages, is noted as two vertical pipes, like this: || You can use it whenever you want to write a statement with two or more …

  10. Operador OR lógico: | Microsoft Learn

    O operador OR lógico (||) retorna o valor booliano true se um ou ambos os operandos forem true e retorna false caso contrário. Os operandos são convertidos implicitamente no tipo bool antes da …