Boolean Expressions Reading assignment

  1. What are operators?

Operators are used to perform arithmetic operations, compare or assign values etc.

  1. What binary operators do you know?

&, |, ^

  1. What logical operators do you know?

&&, | |, !

1 Like
  1. Symbols such + and * are operators because they give an action to the values.
  2. Some binary operators include the minus sign, < and >.
  3. Some logical operators include and (&&), or (||) and not (!).
1 Like
  1. operators are functions that perform a specific action on either one or two values then returns a new value as the result.
  2. binary operators: +, -, /, *, <, >, ==, <=, >=, %, !=
  3. logical operators: && (and), || (or), ! (not)
1 Like
  1. Operators are either words, symbols or groups of symbols which when placed between values will create a new value. There are also unary operates which just precede values and the special case of the tenary operator for example true ? 1 : 2.

  2. From my research I believe there are in total 25 Binary Operators in Javascript

  • 5 Binary Arithmetic Operators (+, -, *, /, %)
  • 6 Binary Comparison Operators (==, !=, >, <, >=, <=)
  • 2 Binary Logical Operators (&&, ||)
  • 6 Bitwise Operators (&, |, ^, <<, >>, >>>)
  • 6 Assignment Operators (=, +=, -=, *=, /=, %=)
  1. There are 3 logical operators the logical AND operator &&, the logical OR operator || and the logical NOT operator.
1 Like
  1. What are operators?
    Operators are used to assign values, compare values, and perform math operations, to name a few. They are the “verbs” of a JavaScript expression.
  2. What binary operators do you know?
    Binary operators take two values. For example, arithmetic (+, -, *, / and %), and comparison (==, !=, ===, !==, <, >, <= and >=).
  3. What logical operators do you know?
    AND (&&) result will be true only if all of its operands are true
    OR (||) result will be true if one or more of its operands is true
1 Like
  1. an operator is an effect that applies to two values in order to give a new value, an example it in math + and - are operators.

  2. addition, subtraction, multiply, divide.

  3. and, or, not.

1 Like
  1. -, +, *, /, % :grimacing:
1 Like
  1. symbols that execute a function, such as + - * / < etc.
    2.<>
  2. 3 logical operators: %% - and , || - or , ! - not
1 Like
  1. Operators in JavaScript are used to assign values, compare values, perform arithmetic operations, perfeorm logic
  2. <, >,==, +, -, /, +
  3. &&, II, !
1 Like

What are operators? - Boolean represents one of two values: true or false . in programming, you will need a data type that can only have one of two values, like

YES / NO

  1. ON / OFF
  2. TRUE / FALSE

What binary operators do you know? - ==

  1. What logical operators do you know? - ? lost on this one. Will research on own.
1 Like
  1. What are operators?

Operators are kind of the verbs in the sentence. They do something with values or primitives. For example multiply two integer numbers.
A specific kind of operator is a boolean operator. It hives back true or false. It is a binary operator.

  1. What binary operators do you know?

Boolean operators. and && , or || , greather then > , less than < , greater or equal => , less or equal =< , equal == , exactly equaly (no type conversion) ===,
I can’t remember more.
These all return a boolean object, true or false.

  1. What logical operators do you know?

and && or ||
I think that logical operators are also binary operators at the same time. I am probably wrong in this one.

1 Like

1: An object capable of manipulating a value, comparison, binary operators, logical operators, and etc.

2: Arithmetic, relational, logical, strings, and comparison.

3: //, &&, || , <, > , ().

a // b
true

a > b
true

a < b
false

(a&&b) || c < b || a
true

a || (b&&c) > b || b
true

(a&&b) > c < k || (k&&c) > b
false

1 Like
  1. Operators define operations that can be taken on values.

  2. The most common binary operators are:Addiction (+); Subtraction (-); Multiplication (*); Division (/); Modulo (%).

&& and --> console.log(true && false) = false;
|| or --> console.log(true || false) = true;
! not --> console.log(!true) = false.

1 Like
  1. Operators are symbols, each having a unique function, placed between values in order to produce a new value.
  2. The binary operators are +, -, *, /, %, //, <=, >=, ==, !=, &&, ||
  3. The logical operators are &&, ||, and !
1 Like

I love this! So thoroughly laid out. Thanks!

  1. What are operators?
    Ans: Operators “operate” on the given values
  2. What binary operators do you know?
    Ans: < and >
  3. What logical operators do you know?
    Ans: and, or, and not
1 Like
  1. What are operators? They assign & compare values, perform operations & logic
  2. What binary operators do you know? 1. <, >,==, +, -, /, +
  3. What logical operators do you know? 1. &&, II, !
1 Like
  1. Operators, in this case, are ways to express booleans

  2. < >= <= &&

  3. && | | !

1 Like
  1. What are operators?

Operators perform actions on values.

  1. What binary operators do you know?

+ , - , * , / , ** , %, += , -= , *= …

  1. What logical operators do you know?

&& , || , ! ( and, or, not)

1 Like
  1. An operator is a symbol that is used to perform an operation.
  2. +, - , %,*, /…
  3. &&, ||, !
1 Like