Boolean Expressions Reading assignment

  1. What are operators?

Operators are used for combining, transforming and comparing values. They can be unary, binary or ternary depending how many values they take, or they can be arithmetic, comparison, logical or other (type of, concatenation…) depending of the purpose of their use.

  1. What binary operators do you know?

Binary operators are the operators that use two values. There are arithmetic binary operators (+, -, *, /, and %), Comparison binary operators (<,>, <=, >=, ==, !=, ===, !==), logic binary operators (&&, ||) and string concatenation (+).

  1. What logical operators do you know?

Logical operators are “AND” (&&), “OR” (||), “NOT” (!) and “CONDITIONAL” or “TERNARY” operator ( ? : )

1 Like
  1. Operators allow you to evaluate conditions
  2. <, >, <=, >=, ==, !=
  3. &&, ||, !
1 Like
  1. What are operators?
    operators are expressions that allow programmers to check if certain variables follow certain conditions or to make some kind of operation on the variables, there are different types of operators like logical and arithmetical and others

  2. What binary operators do you know?
    there are lots and some of them are <, >, ==, !=, &&, and many more

  3. What logical operators do you know?
    &&, ||, !

1 Like
  1. What are operators? Operators perform various tasks using the provided values or arguments. In JavaScript operators are used for compare values, perform arithmetic operations etc.

  2. What binary operators do you know? + - /* %

  3. What logical operators do you know? && ||

1 Like
  1. What are operators?

Operators are math functions that modify one or more values in Javascript to give new outputs.

  1. What binary operators do you know?

Some binary operators include plus (+), minus (-), divided by (/), multiply (*), concatenate (+), greater/less than (< >), equals to (==), the same and greater/less than ( >= <= ), and not equal to (!=).

  1. What logical operators do you know?

The logical operators make decisions on the values given with functions within their core structure; for example, (true ? 4 : 5) always chooses the value on the left and (false ? 4 : 5) always chooses the value on the right.

‘And’ (&&), when placed between combinations of true and false will always result in a false output, unless the combination is true and true. ‘Or’ (||), on the other hand will always result in the output being true so long as one or both are true.

1 Like
  1. Operators are a sign between 2 values that create a new value. They can be unary (uses a single value), binary (uses 2 values) and ternary (uses 3 values).

  2. Binary operators are +,-,* and &&.

  3. Logical operators are represented as && (and), || (or) and ! (not).

1 Like

1. What are operators?

Operators actually take the values and operate them. Putting an operator between two values
will apply it to those values and produce a new value.

2. What binary operators do you know?

Operators that use two values(operants) are called binary operators. Most operators are binary like arithmetic, comparison operators, String Operators even the logical. I think the best summarized link with the binary operators is this https://www.w3schools.com/js/js_operators.asp

3. What logical operators do you know?

There are three logical operators:
The && operator represents logical and. Its result is true only if both the values given to it are true.
console.log(true && false)
// → false
console.log(true && true)
// → true
The || operator denotes logical or. It produces true if either of the values
given to it is true.
console.log(false || true)
// → true
console.log(false || false)
// → false
Not is written as an exclamation mark (!). It is a unary operator that flips
the value given to it—!true produces false, and !false gives true.

1 Like
  1. What are operators?

    • Operator - a symbol or function denoting an operation (e.g. ×, +, -, /, %, typeof)
      • % Modula or Remainder
        X % Y is the remainder of dividing X by Y, For example, 314 % 100 produces 14 and 144 % 12 returns 0. The Remainder precedence is the same as Multiplication and Division.
      • Precedence of Operators
        • P(lease) - Parenthesis
          E(xcuse) - Exponent(s)
          M(y) - Multiplication
          Modula - Remainder %
          D(ear) - Division
          A(unt) - Addition
          S(ally) - Subtraction
  2. What binary operators do you know?

    • Operators that use 2 values are called Binary operators therefore
      • Arithmetic operators are used to perform arithmetic between variables and/or values.
      • Assignment operators are used to assign values to JavaScript variables.
      • String operators. The + operator, and the += operator can also be used to concatenate (add) strings.
      • Comparison operators are used in logical statements to determine equality or difference between variables or values.
      • Conditional (Ternary) operators assign a value to a variable based on a condition.
  3. What logical operators do you know?

    • Logical operators are used to determine the logic between variables or values.
      • And - && - only true if both values given it are true
      • Or - || - produces true if either of the values is true
      • Not - ! - flips the value given it - ! True produces false and ! False returns true
4 Likes
  1. What are operators?
    Are operations made between values or data.

  2. What binary operators do you know?
    Boolean, logical oprations and comparison.

  3. What logical operators do you know?
    And, or, not.

1 Like

1, They are symbols which define what function should be applied between values to produce an outcome.
2, <(less than), >(greater than), ==(equal to)…
3, and(&&), or(||), not(!)

1 Like

What are operators?
Operators are symbols that tell the program what to do with various values whitin the program to accomplish a certain function.
What binary operators do you know?
Operators that use two values are binary operators.
<, >, <=, >=, ==, !=
What logical operators do you know?
&&, ||, !, ? : (and, or, not, ternary)

1 Like

A really complete answer :+1:
I didn’t know “PEMMDAS” nice tricks to remember them

Thank you for the feedback Gabba. Good luck to you.

1 What are operators?
Operators are what tell to values what they are going two do in order to come up with a new value.

2 What binary operators do you know?

  • Equal (==) * Not equal (!=) * Less than (<) * Greater than (>)
  • Greater than or equal to (>=) * Less than or equal to (<=) * Logical AND (&&)
  • Logical OR (||) * Plus (+)* Minus (-) * Multiplication (*) * Divide (/)

3 What logical operators do you know?
&& || !

1 Like
  1. What are operators?
    They affect values.
  2. What binary operators do you know?
    • multiplication, + addition, % remainder, - subtraction (also used as a unary operator for negative), / division,
  3. What logical operators do you know?
    && and, || or, ! not
1 Like
  1. operators are logical steps used to reason about Booleans.

  2. its results is true if both the values given to it are true.

  3. = > == !=

1 Like

1.operators are the things that act on the variables.
2+5 ==> “+” is the operator. they describe the action to be taken (calculated).

  1. binary means it’s made with 2 variables or literals.
    so basicly all the basic math
    adding +
    subtract -
    add *
    divide /
    remainder %

  2. and &&
    or ||
    not !

1 Like
  1. What are operators?
    With operators you can produce new values from the original values depending on the sort of operator
  2. What binary operators do you know?
    +;-;*;/;==;!==;<;>;<=;>=;%
  3. What logical operators do you know?
    && and
    || or
    ! not
1 Like
  1. Operators are simbols who work with values.
  2. “+” “-” “*” “/” < > AND OR NOT boolean.
  3. && “AND”, || “OR”.
1 Like
  1. Operators make operations on given data. For example we can add two numbers using “+” operator. There are many kinds of operators.
    • ,- ,/ , * , %, >,<,>=,<=,!=,==
  2. && , || , ! , ?
1 Like