Boolean Expressions Reading assignment

1: Operators can be logical ll && ! or arithmetic + - * / or ternary The ternary operator take three arguments: The first is a comparison argument. The second is the result upon a true comparison. The third is the result upon a false comparison

2: Less than , greater than>, Addition +,subtraction -,multiplication *, == equal to, <= less than equal to, >= greater than equal to, % Modulo , != Not equal to / division

3: II. returns true if any of the values = True
&& returns true if both values a true

1 Like

@RhoadsNRoses82 you are right. it is confusion. In javascript there are built-in objects so this means there is class called Boolean, however primitive boolean and object boolean have different type.
How is the Boolean class implemented or work
The value passed as the first parameter is converted to a boolean value, if necessary. If the value is omitted or is 0 , -0 , null , false , NaN , undefined , or the empty string ( "" ), the object has an initial value of false . All other values, including any object, an empty array ( [] ), or the string " false ", create an object with an initial value of true .
for more info, check this link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean

1 Like

Thanks for your help!

1 Like
  1. What are operators?
    Operations are used on values to provide and extract data.

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

  3. What logical operators do you know?
    And = &&
    Or = ||
    Not = !

1 Like
  1. What are operators?
    R: Operators are symbols between values that allow different operations.

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

  3. What logical operators do you know?
    R: &&, ||, !

1 Like

Operators are capable of manipulating or comparing values.

Some binary operators are: <,>,!=,!==,-,+

Some logical operators are: &&, ||, ! (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. <,>, <=, >=, +, -, /,
  3. &&, ||, !
1 Like
  1. Operators are symbols and words that produce a string value naming the type of the value you give it.
  2. Some examples of binary operators are: less than (<), greater than (>), equal to (==), plus (+), minus (-), multiply (*), divide (/), and many others.
  3. Logical operators:
    or ||
    and &&
    not !
1 Like

What are operators?

  • Operators are commands to execute specific bits of data.

What binary operators do you know?
1.) Add
2.) Subtract
3.) Divided by
4.) Multiple
5.) Less than
6.) Greater than
7.) AND
8.) OR

What logical operators do you know?
1.) AND
2.) OR
3.) NOT (!)

1 Like

What are operators?

Normally JavaScript booleans are one of two simple values created from literals that programmers use to compare or not compare.

var x = false;

Booleans can also be defined as objects with the keyword, new :

var y = new Boolean(false);

• What binary operators do you know?

(greater than) Categorized as, comparisons and conditions:
(23 > 9);
23 > 9
true

  • What logical operators do you know?

&& (and) Categorized as, a logical operator:

var x = 6;

var y = 3;

(x < 10 && y > 1) + “
” +

(x < 10 && y < 1);

(x < 10 && y > 1)

true

1 Like
  1. Operators execute logic between 2 or more values.
  2. +, -, *, /, %
  3. &&, ||, !
1 Like

Operators ; perform a single or multiple operands which are data values.
A binary operator example is A+B
A logical operator example is AllB

1 Like
  1. What are operators?
    Operators take values and given a certain the command, return a value.
  2. What binary operators do you know?
    mathematical problems, =,-,*,/,=,==,===
  3. What logical operators do you know?
    booleans, &&,| |, <, >
1 Like
  1. What are operators?
    Operators are simbols who take two or more number values and produce a new number(or value) from them.
  2. What binary operators do you know?
    Comparison: >, <, >=, <=, !=, ==.
  3. What logical operators do you know?
    And, or, and not.
1 Like
  1. They are symbols that trigger certain functions for various values/ variables calculations.
  2. 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. && is used for the and function
    || is used for the or function
    ! is used for the not function
1 Like
  1. What are operators? An operator is a word or symbol that performs an operation on a piece of data or a value
  2. What binary operators do you know? Operators that use two values: the minus operator -, equal to ==, not equal to !=, the less than <, and greater than > signs, less than or equal to: <=, greater than or equal to >=, and && meaning true if both values given to it are true, precisely equal: === and not precisely equal !==
  3. What logical operators do you know? And, Or and Not: &&, II, !
1 Like

What are operators?
Applying them results in
a value that indicates whether they hold a certain value for example.

What binary operators do you know?

Greater than (>), less than (<) , greater than or equal to (>=),
less than or equal to (<=), == (equal to), and != (not equal to).

What logical operators do you know?

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

conditional operator (or sometimes just the ternary
operator since it is the only such operator in the language). console.log(true ? 1 : 2);
The value on the left of the question mark “picks” which of the other two values will come out.
When it is true, it chooses the middle value, and when it is false, it chooses the
value on the right.

1 Like
  1. What are operators?

An operator performs some operation on single or multiple operands and produces a result
2. What binary operators do you know?
/ divide
*multiply
= equal

  1. What logical operators do you know?
    II or
    && and
    ! Not
1 Like
  1. operators are used to perform certain operations between variables or values. they can assign values, compare values…etc
  2. Boolean
  3. &&
  1. Operators in JavaScript are inputs that determine the value of an operation. They can be symbols or words; unary (uses one value), or binary (uses two values).
  2. +, -, /, *, <, >, <=, >=, %
  3. && = and
    || = or
    ! = not
1 Like