Boolean Expressions Reading assignment

Certainly, but there are dozens of answers in English. My intention is to contribute so that Portuguese speakers can have other answers for comparison.

1 Like
  1. What are operators?
    Operators are used to assign values and evaluate expressions, or otherwise perform some sort of action on an values and variables.
  2. What binary operators do you know?
    Standard operators that compare two values: +, - , / , % 
etc.
  3. What logical operators do you know?
    Logical operators determine the logical relationship between values and return a boolean value
1 Like
  1. Operators perform actions on values.

      • / * % > < ==
  2. && ||

1 Like

I understand, It just makes it a little harder for us to help out


But I like the initiative, maybe we could create a section for other languages?

Ivo

1 Like
  • What are operators?
  • Operators are use to perform ‘operations’ on values, they can compare values, assign values and perform arithmetic operations, string concatenation, logical operation, boolean = true/false.
  • What binary operators do you know?
  • +,-,*,/,%,<,>,<=,>=, ==,++, %,
  • What logical operators do you know?

&& and
II or
! not

1 Like

I get it Ivo.

Next time i’ll post in portuguese and english.

1 Like

I will look forward to that, I would love to learn Portuguese, so that’s perfect
 :wink:

Eu jĂĄ falo italiano e entendo muito espanhol.
Talvez eu possa aprender um pouco de portuguĂȘs agora?

Ivo

1 Like

What are operators?
In JavaScript (and programming in general), operators are used to assign or compare values, perform arithmetic operations, evaluate expressions, and more.

What binary operators do you know?

  • & AND Sets each bit to 1 if both bits are 1
  • | OR Sets each bit to 1 if one of two bits is 1
  • ^ XOR Sets each bit to 1 if only one of two bits is 1
  • ~ NOT Inverts all the bits
  • << Zero fill left shift Shifts left by pushing zeros in from the right and let the leftmost bits fall off
  • >> Signed right shift Shifts right by pushing copies of the leftmost bit in from the left, and let the rightmost bits fall off
  • >>> Zero fill right shift Shifts right by pushing zeros in from the left, and let the rightmost bits fall off

What logical operators do you know?

  • && and (x < 10 && y > 1) is true
  • || or (x == 5 || y == 5) is false
  • ! not !(x == y) is true
1 Like
  1. Operators define operations to be taken between values
  2. Binary operators: addition, subtraction, multiplication, division, remainder or modulo (the only one which I still don’t understand)
  3. Logical operators: && (and), || (or) and ! (not)
1 Like

1.Operators are used to validate expression, combine or transform values
2. Plus, subtraction, divison, multiplication, modulus
3. && (And) II (Or) ! (Not)

1 Like
  1. Operators are a computation performed on one or more values to produce a value.

  2. Binary operators can be things such as +, -, *, /, or %.

  3. Logical operators can be && (And), || (Or), or ! (Not)

1 Like
  1. What are operators?

Operators bring an effect between two or more values. Examples are +, -, *, and /.

  1. What binary operators do you know?

The symbols > and < are binary operators. Also +, -, *, /, and %.

  1. What logical operators do you know?

And, or, and not. These are expressed as &&, ||, and !, respectively.

1 Like
  1. What are operators?
    An operator is a symbol used to manipulate values (ex. + - / * ).

  2. What binary operators do you know?
    Addition, subtraction, multiplication, division.

  3. What logical operators do you know?

Greater than >
Less than. <
Equal to ==
Not equal to !=

1 Like
  • What are operators?
    Perform some operation on single or multiple operands and produce a result

  • What binary operators do you know?

<
>
<=
>=
==
!=
===
!==
  • What logical operators do you know?
    && And
    || Or
    ! Not
1 Like
  1. Operators are symbols like + or - which operate upon values (like numbers)
  2. +, -, etc
  3. ‘if’, ‘when’ etc
1 Like
  1. Operators are a symbol or number used to perform an operation like a string value, they can be used for logic, binary, unary, and ternary values.

  2. =, -, +, %, <, >, *, ++, ==, -,

  3. &&, II, !,

1 Like
  1. Program symbols that relate two values to each other, and produce a new outcome value.

arithmetic (+, -, *, /, and %)
string concatenation (+)
comparison (==, !=, ===, !==, <, >, <=, >=)
logic (&&, ||)

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

1 Like
  1. What are operators?
    Operators are used to do operations on data.

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

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

1 Like
  1. A operator performs some operation single or multiple
    operants (data value) and produce results.
    • , - , * , / ,
  2. thru || thru
    false || false
    false || thru
    Thru || false
1 Like

1. What are the operators?

Operators are a data value that functions some action to create a desired outcome in various categories. It could be arithmetic, comparison or logical operator for example.

2. What binary operators do you know?

Binary operators are operators that use two values. Usually true and false or Yes and No , or On and Off.

3. What logical operators do you know?

Booleans have three logical operators:

  • and (&&) - operator which compares two values with results of true or false (true if both values are true).
  • or (||) - return true if one of the values given to is an actual true .
  • not (!) - unary operator which flips the value which is attached to. ( !true = false )
1 Like