Boolean Expressions Reading assignment

Hi @ArtCenter1,

These are actually comparison operators.

Assignment operators are:  = += -=  *= etc.

1 Like

Hi again, @ArtCenter1,

Q3 :ok_hand:

…Yes :ok_hand: … and they perform other actions too. Basically, operators perform actions on values.

Yes… except for the increment operator ( ++ )  and the decrement operator  ( -- )
These are actually unary operators (not binary operators) because they only operate on one value (adding or subtracting 1 to/from it) rather than on two values.

2 Likes

Thank you for the correction.

1 Like
  1. Operators are symbols to perform the operation between two values.
  2. +,-,/,*,%,<,>
  3. ||, &&, !
1 Like
  1. Operators are symbols that perform the operations there are unary, binary and ternary. Some examples of operators include arithmetic, string, logical, type operators (typeof), comparison and bitwise.

  2. Here are some examples of Binary Operators;
    == (comparisons)
    !=

=
<
<=
&&
||
+, -, *, /, % (arithmetic)

  1. Here are some examples of Logical Operators;
    && (logical and)
    || (logical or)
    ! (logical not)
1 Like
  1. Value symbols that are used to perform mathematical, logical, comparison and other operations.
  2. Arithmetic, assignment, string, comparison and logic operators.
  3. &&
    ||
    !
1 Like
  • What are operators?
    Operators are special characters that carry out on operands
  • What binary operators do you know?
    +, -, *, ==, /, ++, --, %
  • What logical operators do you know?
    ||, &&, !
1 Like
  1. Operators help us to work with values. Operators are for example mathematical symbols like +,-,/,* etc. or written words like the typeof operator. The typeof operators is a unary operator, this means that it takes only one value in contrast with binary operators (+,-etc) which works with two values. There exist also logical (&&) operators which enables us to work with Boolean values.

  2. Arithmetical symbols like +,-,/,*etc.

  3. And (&&), or (I I) operators which both are binary operators and not (!) a unary operator and the conditional operator (?) a ternary operator on three values.

1 Like
  1. Operators are symbols that tell the computer to perform certain mathematical or logical operations on the operands that is given to them.

  2. A binary operator operates on two operands (values) and produces a result. Common binary operators are:
    The arithmetic operators: addition(+), Subtraction(-), Multiplication(*) Exponentiation(**), Division(/), and modulus(%) (remainder).
    We also have the increment(++) and decrement(–) arithmetic operators, though these are technically unary operators, increasing or decresing the value of the operand given to it by 1.
    The comparison operators: Equal to (==), Not equal to (!=), Less than (<), Greater than (>), Less than or equal to (<=), Greater than or equal to (>=), Exactly equal to (===), Not exactly equal to (!===). (The ===, !== operators also compare the types of values. So even though 0 and false both gets converted to boolean false, the !== operator would return true if those operands are given to it because the value types differ.)

  3. Logical operator AND: (&&) returns true only if both sides are converted to boolean true. OR: (||) Returns true if either of the operands or expressions that are given to it returns true. NOT: (!) Is an unary logical operator that reverses the true/false outcome of the expression that immidiately follows.

1 Like
  1. In mathematics the words ‘function’, ‘map’, and ‘operator’ are used interchangeably to signify, intuitively speaking, a rule by means of which an input element in a given domain is uniquely assigned a corresponding output element in a given range. More concretely, we may say that an n-ary operator is a function f that assigns to an input element of the form (x1,…,xn) the output element f(x1,…,xn).
  2. Common numerical binary operators with numerical outputs are f(x,y)=x+y, x-y, x/y, x*y, and x^y (Math.pow(x,y) in Javascript). Moreover, expressions such as x>y, x<y, x>=y, x<=y, x==y, x===y, x!=y, and x!==y are used to denote binary operators with boolean output values.
  3. The standard logical operators are A&&B (A and B), A||B (A or B), !A (not A), A==B (A equivalent B), and !A||B (A implies B).
1 Like
  1. What are operators?
    Is basically operation of the equation, such as +, -, *, /

  2. What binary operators do you know?
    Under the binary, operators are && (and), II (or), > or < (greater or less than), == (equal)

  3. What logical operators do you know?
    &&, ==, II

1 Like
  1. symbols that tells the compiler to perform specific (mathematical or logical) functions
  2. +, -, *, /
  3. &&, ||
1 Like
  1. Allows you to combine strings and numbers
  2. Binary operators: +, -, /, *, ** etc…
  3. AND, OR, NOT, <, >, =, >=, <= etc…
1 Like
  1. What are operators?
    Operators are used to combine and transform values.

  2. What binary operators do you know?

  • (addition), - (subtraction), / (division), * (multiplication), % (modulo), “remainder”), == (is equal to), != is not equal to, === is identical to, > (larger), < (smaller), >= (larger or equal to), < (smaller or equal to)
  1. What logical operators do you know?
    && (and), || (or)
1 Like
  1. They are symbols that are used to perform operations on operands and there is arithmetic, assignment, string, comparison, logical, type and a few more types of operators.
  2. Binary operators: +, -, /, *.
  3. JavaScript supports 3: and (&&), or (!), and not ( || ).
1 Like
  1. What are operators?

They are symbols that operates the operands. Operators are categorised into arithmetic, logical, special, bitwise, comparison and assignment operators.

  1. What binary operators do you know?

Yes and No, On and Off, Up and Down, In or Out

  1. What logical operators do you know?

AND, OR and Not.

1 Like
  1. Operators in JS are functions that have ‘action’ - like verbs in a sentence.
    Operators include the arithmetic operators;
    ‘ + ‘ being ‘plus’, ‘ - ‘ being ‘minus’, ‘ / ‘ being ‘divide’, ‘ * ’ being ‘multiply’ and ‘ % ‘ being ‘remainder’
    There are also assignment operators such as; ’ = ’ being ‘equals’.
    There are a number of other types of operators.

  2. Bitwise operators use binary operations.

  3. Logical operators are; ‘&&’ / ‘||’ / ‘!’

1 Like

1. What are operators?

Operators are actions that are defined within a program. We mostly know these as +, -, *, /, etc and operators essentially tell the program to “do X with value A and value B” where X is the operator.

2. What binary operators do you know?

Addition, subtraction, multiplication, division, remainder (I’m sure there are more but those are what I know)

3. What logical operators do you know?

And &&
Or ||
Not !

1 Like
  1. What are operators?
    The operator performs some operation on single or multiple data value an produces a result.

  2. What binary operators do you know?

  • Multiplicative Operators
    • The * Operator
    • The / Operator
    • The % Operator
  • Additive Operators
    • The Addition operator ( + )
    • The Subtraction Operator ( - )
  • Bitwise Shift Operators
    • The Left Shift Operator ( << )
    • The Signed Right Shift Operator ( >> )
    • The Unsigned Right Shift Operator ( >>> )
  • Relational Operators
    • The Less-than Operator ( < )
    • The Greater-than Operator ( > )
    • The Less-than-or-equal Operator ( <= )
    • The Greater-than-or-equal Operator ( >= )
    • The instanceof operator
    • The in operator
  • Equality Operators
    • The Equals Operator ( == )
    • The Does-not-equals Operator ( != )
    • The Strict Equals Operator ( === )
    • The Strict Does-not-equal Operator ( !== )
  1. What logical operators do you know?
    AND && , OR ||, and NOT !
1 Like

Hi @Palmeguppsi,

Nice answers, with great detail :+1:

Just to clarify one point…

… not only mathematical and logical operations, but other actions as well.

1 Like