About 52 results
Open links in new tab
  1. Boolean - JavaScript | MDN - MDN Web Docs

    Jul 10, 2025 · Boolean values can be one of two values: true or false, representing the truth value of a logical proposition.

  2. Boolean - Glossary | MDN

    Jul 11, 2025 · Boolean In computer science, a Boolean is a logical data type that can have only the values true or false. For example, in JavaScript, Boolean conditionals are often used to decide which …

  3. Boolean () constructor - JavaScript - MDN

    Jul 10, 2025 · The Boolean() constructor creates Boolean objects. When called as a function, it returns primitive values of type Boolean.

  4. Boolean (JavaScript) - Glossary - MDN

    Jul 11, 2025 · A Boolean in JavaScript is a primitive value that can be either true or false.

  5. JavaScript data types and data structures - MDN Web Docs

    Jul 8, 2025 · Boolean type The Boolean type represents a logical entity and is inhabited by two values: true and false. Boolean values are usually used for conditional operations, including ternary …

  6. Logical AND (&&) - JavaScript | MDN

    Jul 8, 2025 · The logical AND (&&) (logical conjunction) operator for a set of boolean operands will be true if and only if all the operands are true. Otherwise it will be false.

  7. Logical OR (||) - JavaScript | MDN - MDN Web Docs

    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. When it is, it …

  8. Boolean attribute (HTML) - Glossary | MDN - MDN Web Docs

    Jul 11, 2025 · A boolean attribute in HTML is an attribute that represents true or false values. If an HTML tag contains a boolean attribute — no matter the value of that attribute — the attribute is set to true …

  9. Boolean - JavaScript - MDN

    Boolean Representa o protótipo para o construtor Boolean. Métodos O objeto global Boolean contém métodos próprios, entretanto, ele herda alguns métodos através da cadeia de protótipos: Instâncias …

  10. Expressions and operators - JavaScript - MDN

    Jul 8, 2025 · This chapter describes JavaScript's expressions and operators, including assignment, comparison, arithmetic, bitwise, logical, string, ternary and more.