Boolean Expressions Reading assignment

  1. What are operators?

A. Operators are signs in programming language which acts on values for producing results.

  1. What binary operators do you know?

A. Binary operators are > or < which creates boolen results.

  1. What logical operators do you know?

A. Logical operators are &&(and) || (or) !(not)

1 Like

1. What are operators?
Operators are symbols that allow comparison of different text/values to give a specific outcome.

2. What binary operators do you know?

===
!==
<=

=

3. What logical operators do you know?
And &&
or ||
not !

1 Like
  1. Operators are symbols that represent basic mathematical and logical functions.
  • (+) addition;
  • (-) subtraction;
  • (*) multiplication;
  • (**) exponentiation;
  • (/) division;
  • (%) modulus;
  • (==) equal to;
  • (===) equal value and equal type;
  • (!=) not equal;
  • (!==) not equal value or not equal type;
  • (>) greater than;
  • (<) less than;
  • (>=) greater than or equal to;
  • (<=) less than or equal to;
  • (&&) and;
  • (||) or;
  • (=) assign;

There are also some shorter versions of basic operation on previously assigned variables for example x += y is the same as x = x + y. Other examples:

  • (-=) x = x - y;
  • (*=) x = x * y;
  • (/=) x = x / y;
  • (%=) x = x % y;
  • (**=) x =x ** y;
  • (&&) and;
  • (||) or;
  • (!) not;
1 Like

1.An operation is an action between the two values
2.Binary operators that i know; >, <,>=,<=, ==, !=, and basic mathematics are binary as well, +,-,*,and /
3.Logical operators that i know ; and( & ), or( || ),and not( ! )

1 Like
  1. Operators are used to act on values.

  2. Operators that use two values are called binary operators.
    ex. +, -, *, /, %, ++, --, &&

  3. Logical operators are used to reason about Booleans and are expressed as follows:
    And: &&
    Or: ||
    Not: !

1 Like
  • Operators are used to take two values and produce a new value.
  • These are binary operators: +, -, *, /, %,
  • These are logic operators: &&, ||, !
1 Like
  • What are operators?
    object that creates an action upon a value i.e. +, /, * or -
  • What binary operators do you know?
    <= (less than or equal to),== (True equal), (Not equal) !=
  • What logical operators do you know?
    (&&) And, (II) or
    [/quote]
1 Like
  1. What are operators (pp. 11)?
  • Operators act on values, eg. on two values such as Arithmetic operators:

    • +, -, /, *, %

Unary operators act on one value: typeof (prints the type of value you give it), e.g.:

	```
		console.log(typeof 111.1)
			//	-> number
		console.log(typeof "moon")
			//	-> string
	```
  • or the - operator can be used both as a binary operator and as a unary operator as in:

      ```
      	console.log(- (10 - 2))
      		// -> -8
      ```
    
  • boolean operators (p. 16):

      - `<`: greater than,
      - `>`: less than, 
      - `==`: equal to,
      - `>=`: greater than or equal to, 
      - `<=` less than or equal to
      - `!=` not equal to
    
  • logical operators

  1. What binary operators do you know (p.15)?
  • arithmetic, boolean, and logical operators.
  1. What logical operators do you know?
  • logical operators:
    - ||: logical or,
    - &&: logical and,
    - !: locgical not’,
    - true/false ?:…: ternary
    - === precisely equal
    - !== precisely not equal
1 Like
  1. Operators are symbols or phrases which perform some operations on given values.
  2. One set of examples of binary operators are arithmetical symbols, such as addition, subtraction, multiplication and division.
  3. Logical operators are:
    && - and
    || - or
1 Like
  1. actions applied to variables

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

  3. &&, ||, !

1 Like
  1. Operators are symbols placed between or infront of one or several values, depending on wether it’s a unary or binary operator, to create new values out of the given ones.
  2. +,-,*,/,%,>,<,>=,<=,==,!=
  3. &&,||,!
1 Like
  1. Operators are functions that manipulate values. (+,-,*,/)

  2. Equal to =, Greater than >, Less than <

  3. AND, OR and NOT

1 Like
  1. What are operators?
    Answer: An operator is a symbol that represents an action that an expression is to be evaluated upon.

  2. What binary operators do you know?
    Answer: +, -, *, ?, ^, %, <, >, ==, <=, >=, !=

  3. What logical operators do you know?
    Answer: && (and), || (or), ! (not)

1 Like
  1. Javascript operators are used to assign values, compare values, perform arithmetic operations etc.
  2. <, >, ==, !=, <=, >=
  3. and, or, and not
1 Like
  1. What are operators?
    Symbols that tell values what to do in the function
  2. What binary operators do you know?
    • / * %
  1. What logical operators do you know?
    || operator denotes logical or
    && operator represents logical and

1:
Operators perform a desired action on a single or set of values, allowing the values to be changed or compared.

2:
+. ADD
-. SUBTRACT
*. MULITPLY
/. DIVIDE
%. REMAINDER

3:
&& AND
|| OR
! NOT

  1. Operators allow you to manipulate the value of variables, perform mathematical operations on their values, and compare different variables. In this way, operators allow programs to perform complex calculations and make logical decisions based on comparisons and other types of conditions.
    2.= * = Assign Product X *
    / = Assign Division X /
  • = Assign Sum X +
  • = Assign Subtraction X -
    % = Assign Module X%
    << = Assign Left Shift X <<

= Assign Right Shift X >>
& = Assign AND between Bits
^ = Assign XOR between Bits
| = Assign OR between Bits

  1. && (AND operator) || (OR operator) and ¡(negation operator).
  1. What are operators?
    An object that manipulates value.
    You can combine and transform values with operators.
    operators constructs defined within programming languages to allow
    users to add new meanings to existing operators or define new operators

    1. What binary operators do you know?
      Binary operators for arithmetic (+, -, *, / , and %), string concatenation (+),
      comparison (==, !=, ===, <, >, <=, >=) , and logic (&&, ||), also unary operators
      (- to negate a number, ! to negate logically, and typeof to find a value’s type)
      ternary operator(? : ) to pick one of two values based on a third value.

    2. What logical operators do you know?
      Operators are : &&(and), ||(or), and !(not). ==> Logical.

1 Like
  1. What are operators?
    Symbols which represent actions for an expression to act on
  2. What binary operators do you know?
    binary operators for arithmetic (+, -, *, /, and %), string concatenation (+),
    comparison (==, !=, ===, !==, <, >, <=, >=)
  3. What logical operators do you know?
    JavaScript supports three logical operators: and $$, or ||, and not !. These can be used to “reason” about Booleans.
1 Like
  1. An operator operates on values.
  2. <, >, ==, !=, &&, ||, +, -, *, /
  3. &&, || (these are both logical and binary).
1 Like