Boolean Expressions Reading assignment

  1. Operators allow you to do calculations
  2. =, !=, <, >, <=, >=
  3. !, &&
  1. What are operators?
    Operators are atomic elements of Javascript programs that act on simple value types which are also atomic JavaScript elements. Not all operators are symbols, some are written in words.

  2. What binary operators do you know?

The minus operator can be used both as a binary operator and as a unary operator.

  1. What logical operators do you know?

The && operator represents logical and
The || operator denotes logical or It produces true if either of the values given to it is true.

That’s fine, but when do I get to build my crypto!

  1. What are operators?

You can combine and transform values with operators.

1. What are operators?
operators are characters that represent an action
2. What binary operators do you know?
+ - * /
3. What logical operators do you know?
== is equal to
!= is not equal to
> greater than
< smaller than
&& and, both values have to be true to otherwise false
|| logical or, is true if at least one of the terms is true

  1. What are operators?
    Operators are actions taken, to combine and transform values given.

  2. What binary operators do you know?
    +, -, *, /, %, are some examples used as binary operators for arithmetic use .

  3. What logical operators do you know?
    “&&”(and), “||”(or), “!” (not) are examples of logical operators are used to determine logic between values.

  1. Constructs which operate on values.
  2. Arithmetic, relational and assignment operators.
  3. And &&
    Or ||
    Not !
  1. Operators assign values, do arithmetics, comparisons, logic, conditions
  2. Booleans, +, -, *, /, %, ++, << , >>,
  3. and, or, not
  1. What are operators?
    An operator is a symbol that is used to perform an operation. They can be used for arithmetic, string concatenation, comparison or logic and can be unary, binary or even ternary.
  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?
    And (&&)
    Or (||)
    Not(!)
What is an operator?

An operator is a symbol or word which directs the computer to perform some type of action upon one or more values when placed next to said value(s).

Unary operators
  • Values of the type “unary operator” are operators written as words, which take only one value as an input, and produce an output based on the single value input.
    • Note: This is unlike “binary” operators which require a two input values in order to produce an output, or “ternary” operators which require three input values to produce an output.
  • Examples of unary operators
    • The typeof operator outputs a string value naming the type of the value that was inputed
    • The – operator allows you to flip the sign of a numeric value inputed (e.g. from positive to negative or negative to positive).
    • The ! operator allows you to flip a boolean value inputed
Binary operators

Arithmetic operators:

  • Allow for doing arithmetic with numbers.
  • Represented by “symbols” such as +, -, *, and /
  • A less commonly used arithmetic symbol is the % symbol (known as the module or mod operator), which gives the remainder of a division expression.
  • Arithmetic expressions with multiple symbols are computed in the following order of operations:
    • Arithmetic within parentheses
    • Multiplication, division, and remainders (if multiple of these appear next to each other, precedence is from left to right – this is known as left associativity)
    • Addition and subtraction (if multiple of these appear next to each other, precedence is from left to right – this is known as left associativity)

Comparison operators:

  • Greater than, expressed using the symbolic binary operator >
  • Less than, expressed using the symbolic binary operator <
  • Exactly equal to, expressed using the symbolic binary operator ==
  • Less than or equal to, expressed using the symbolic binary operator <=
  • Greater than or equal to, expressed using the symbolic binary operator >=

Logical operators:

  • “And”, expressed using the symbolic binary operator &&
  • “Or”, expressed using the symbolic binary operator ||
  • Note: “Not”, expressed using the symbol !, is also a logical operator, but it is a unary operator not a binary operator.
Ternary operators (i.e. conditional operator)
  • The conditional operator, the only ternary operator in the JS language, is structured as follows
    • Boolean value ? value if true : value if false
Precedence of operators

Full table can be found here:

1 Like

1: functions that you can use with your data.
2: + - / * %
3: && & || & !

1 Like

What are operators? Operators perform some operations on single or multiple data values and it produces a result

What binary operators do you know? < Is less then / > Is greater then / <= Is less then or equal / >= Is greater then or equal / == Equal to / != Not equal to

What logical operators do you know? $$ And / || Or / ! Not

1 Like

Operators change make values do things
times, divide, plus, less than, greater than, greater or equal too, less than or equal too.
||, &&, !

1 Like
  1. Operators perform actions on values.
  2. Some binary operators are +, -, *, /, >, <, <=, and >=
  3. Logical operators are && || and !
1 Like
  1. Operators are the action for the values.
  2. Binary operations in JavaScript are true and false. These are represented by:
    • greater than
  • < - less than
  • = - greater than or equal to

  • < = - less than or equal to
  1. Logical operations are:
  • && - and
  • || - or
  • ! - not
1 Like
  1. What are operators?
    Operators are the actions of an expression. Examples are + = - * /

  2. What binary operators do you know?
    The greater than (>) and less than (<) are binary operators.

  3. What logical operators do you know?
    The logical operators are ‘and’ (&&), ‘or’ || and ‘not’ (!).

1 Like
  1. Operators let you evaluate conditions and values, also manipulate them

  2. ==, !=, <=, >=, <, >, +, -, /, *

  3. &&, ||, !

1 Like
  1. ) Operators are tools that allows manipulation of values, elements and expressions within some set of conditions. Operators can be logical, arithmetic, multiplications, comparison, division, operand, concatenation, etc
  1. Binary operators are those operators that work with or evaluate on with two operands i.e combination of two elements to produce another element. examples include:
    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 (/)

  2. Logical operator are operators that specifically perform comparison based on a set of rules without which renders invalid.

Logical Operators evaluates values to either true or false, yes or no, right or wrong based on preset/pre-determine set of conditions.

(3)There are three (3) Logical operators used with Values and Boolean :(i) && (AND) (ii) || (OR) ( iii) ! (NOT)

1 Like
  1. Operators are basically controllers. They provide an action for a value.
  2. (*/±=)
  3. || && == != === !==
1 Like
  1. Operators evaluate conditions and do calculations
  2. <, >, >=, <=, ==, !=, &&, ||, +, -, *, /
  3. && AND, || OR, ! NOT
1 Like
  1. In JavaScript operators are used to assign values, perform arithmetric operations, compare values, assign conditions, logic, typeof or deletion ect. if an operator takes one value then it is a unary operator, while if the operator uses two values, its is termed a binary operator.

  2. A bitwise OR is a binary operation that takes two bit patterns of equal length and performs the logical inclusive OR operation on each pair of corresponding bits. The result in each position is 0 if both bits are 0, while otherwise the result is 1. For example: 0101 (decimal 5) OR 0011 (decimal 3) = 0111 (decimal 7).

  3. The concept of logical operators is simple. They allow a program to make a decision based on multiple conditions. Each operand is considered a condition that can be evaluated to a true or false value. Then the value of the conditions is used to determine the overall value of the op1 operator op2 or !

1 Like