Boolean Expressions Reading assignment

  1. JavaScript operators are used to assign values, compare values, perform arithmetic operations, and more.
  2. +,-,<,>,==,!=
  3. &&(logical and), ||(logical or)

1.Operators are: constructs which behave generally like functions, but which differ syntactically or semantically from usual functions.
2. Booleans

  1. and, or and not.
  1. Operators do as their name suggests and operate on values to produce some result. These can be mathematical operations or concatenation or something else.

  2. Binary operators operate on two values: the ones that I know are as follows:

+ //The addition operator, can be used to add two numbers or concatenate strings
- //The subtraction operator, can be used to subtract numbers or denote negative numbers
/ //The Division operator, is used to divide two numbers
* //The multiplication operator, is used to multiply two numbers
% //The modulo operator, used to return the remainder of division between two numbers
= //The assignment operator is used to asign one value to another
== //The loose equality operator determines equivalence between two values regardless of type
=== //The strict equality operator determines equivalence for exact type only
&& //The and logical operator is a binary operator that returns a boolean if both values are true
|| //The or logical operator returns true if either value is true
> //The greater than operator returns true if the value to the left is greater than the one on the right
< //The less than operator returns true if the value on the left is less than the one on the right
  1. The logical operators that I know are the ! unary operator which reverses the boolean meaning of what it is place before such as != ( not equal ), the && operator, and the || operator.
  • Operators are tools to apply to 2 values and which always returns a value.
  • Binary Operator : -, +, <, >, etc…
  • Logical Operators compare values. In a context of a boolean context, it will compare 2 values and return true or false.
  1. They are tools to evaluate an expression consisting of a certain number of arguments
  2. +,-,*,/,%,==,>,>=,<,<=
  3. And &&, or ||, not !

What are operators? : verbs
What binary operators do you know? : >, <, I=, ==, >=, <=
What logical operators do you know? : &&, II

  1. Symbols that perform certain function which in turn manipulates the values
  2. +,-,/,*,==, >, <, != and many more
  3. AND: &&, Or: ||, Not: !
  1. functions that manipulate values
      • / * < > !=
  2. and or no && II !
  1. The operators in a computer language tell the computer what actions to perform

  2. Addition, subtraction, division, multiplication

  3. AND, OR, NOT

What are operators?

Operators are symbols or words which evaluate or assign expressions.

What binary operators do you know?

Binary operators use two values to evaluate expressions.
Some binary operators are +, -, *, /, %, >, and <.

What logical operators do you know?

Logical operators are used to reason about booleans.
Some logical operators are &&, ||, and !.

  1. Operators are a special sort of functions that will manipulate values.
  2. less than (<), greater than, (>), equal to (==), and various combinations of the three.
  3. || and &&

What are operators?
They are signs that can only produce a True or False result

What binary operators do you know?
< > != ==

What logical operators do you know?
&& ||

What are operators?

operators are symbols that have a specific function. This function then acts on values.

What binary operators do you know?

+(add), - (subtract), / (divide), * (multiply), % (remainder)

What logical operators do you know?

|| (or), && (and), ! (not), ?: (conditional)

  1. What are operators?
    Operators are mathematical expressions between values to generate a result
  2. What binary operators do you know?
    +, - , *, /, <, >, <=, >=, %
  3. What logical operators do you know?
    Given x=5
     == equal to, for example:
    x==8 is false
    X==5 is true
    X==”5” is true

 === equal value and equal type, for example:
X===5 is true
X===”5” is true
 != not equal, for example:
X!==5 is true
 !== not equal value or not equal type, for example:
X!==5 false
X!==”5” true
X!==8 true
 < greater than, for example:
x>8 false
 < less than, for example:
X<8 true
 >= greater than or equal to, for example:
x>=8 false
 <=less than or equal to, for example:
X<=8 true

  1. Operators are symbols used in JavaScript language to perform operations/actions.

2.Binary operators I know (so far): =, +, /, *, <, > , - , %, <=, >=, ==, !=,
&&, ||

  1. &&, ||, !, ?:
  1. The symbol that is used to perform an operation.
  2. , <, +, -, *, /.

  3. and, or, not.

What are operators?
Operators are symbols that give values action.

What binary operators do you know?
+,-,/,*,=,<,>,<=,>=,==,!=,&&,||

What logical operators do you know?
||,&&,!,==

What are operators?
constructs that behave like functions. come in the form or arthimetic, logical and comparison
What binary operators do you know?
_> greater than
< less than

= greater than or equal to
<=less than or equal to
= equals
!= not equals
+, -, /, *_
What logical operators do you know?
_&& and
|| or
! not

== equals_

  1. What are operators?

Operators are the parts of an expression that modifies the values within that expression.

For example, if we have the simple expression (2 + 4), the operator is the “+” and will ADD the first value to the second value.

The basic operators in Javascript are :

" + " addition
" - " subtraction
" * " multiplication
" / " division
" % " modulus (or remainder)
" ++ " increment
" – " decrement

2 What binary operators do you know?

Binary operators are:
" && " the logical AND
e.g. true && true = true, true && false = false

" || " the logical OR
e.g. true || false = true, false || false = false

" ! " the logical NOT
e.g. !true = false, !false = true

  1. What logical operators do you know?

There are also Assignment Operators, Comparison Operators, Type Operators and Bitwise Operators.

Assignment Operators:
" = " x = y is the same as x = y
" += " x += y is the same as x = x + y
" -= " x -= y is the same as x = x - y
" *= " x *= y is the same as x = x * y
" /= " x /= y is the same as x = x / y
" %= " x %= y is the same as x = x % y

Comparrison Oporators:
" == " is equal to
" === " is equal to, in value and type
" != " is not equal to
" !== " is not equal to, in value or type
" < " is less than
" > " is greater than
" <= " is less than or equal to
" >= " is greater than or equal to
" ? " the tertiary comparitor e.g. (true ? 1 : 2) = 1 (false ? 1 : 2) = 2

Type Operators:
" typeof " returns the type of a value
" instanceof " returns true if an object is an instance of an object type

Bitwise Operators:
" & " logical AND e.g. 5 & 1 which is 0101 & 0001 = 0001 =1
" | " logical OR e.g. 5 | 1 which is 0101 | 0001 = 0101 = 5
" ~ " logical NOT
e.g. ~5 which is ~00000000 00000000 00000000 00000101 = 11111111 11111111 11111111 11111010 = -6 (since JS uses 32bit signed integer rather than 4bit, so will not equal 10 as might be expected)
" ^ " logical XOR e.g. 5 ^ 1 which is 0101 ^ 0001 = 0100 = 4
" << " fill zero left shift e.g. 5 << 1 which is ~0101 = 1010 = 10
" >> " sign preserving right shift
e.g. -5 >> 1 which is 11111111 11111111 11111111 11111011 >> 11111111 11111111 11111111 11111101 = -3 (because JS uses the 32bit signed integer)
" >>> " zero fill right shift e.g. 5 >>> 1 which is 0101 >>> 0001 = 0010 = 2

What are operators? - An operator takes value/s and make a new value out of it
What binary operators do you know? - + - * / && || %
What logical operators do you know? - && (and) || (or) ? (conditional)