- a operator does something to a value, like multiply it
- Binary do something like multiply or compare two values, ex. a*b
- Logical operators compare two inputs, &&, ==, !=, ||
1 operaters are the part of a function that dictate what to do with the values
2 + - / *
3 if, > < =
3. What logical operators do you know?
Hello sir, those are not logical operators, they are “Comparison Operators”, the logical operators used in Javascript are:
&& = AND
Example:
(x < 10 && y > 1) is true
|| OR
Example:
(x == 5 || == 5) is false
! = NOT
Example:
!(x == y) is true
Hope this gives you a clear view of the subject, keep learning!
If you have any doubt, please let us know so we can help you!
Carlos Z.
thanks again! learned another thing!
-
They preform an operation. == < >
-
-
-
ll && !
2. What binary operators do you know?
Hello sir, i just see some dots on the answer to the second question, if you please redesign it would be awesome!
Remember you can use the “Preformatted Text” Button to encapsulate any kind of code you want to show.
I am a happy Preformatted Text box, please use me wisely!
Hope you find this useful!
Carlos Z.
+ - * /
Is what I wanted to show.
- Operators are symbols that let to do arithmetic or other operations.
- Arithmetic, relational, comparison, assignment and logical.
- &&, ||, !.
- What are operators?
- Operators are specific functions used for values to interact with each other and create a new value
- What binary operators do you know?
- ==, !=, ===, !==, <,>, >=, +, -, *, /, % or pretty much any operator which will compute two values and give an output
- What logical operators do you know?
- “&&” and || not"|"
- Operators are actions that are used on values.
- <, >, <=, >=, ==, !=
- &&, ||, console.log(true ? 1 : 2)
-
What are operators?
– Operators are used to compose,compare or calculate a new value out of one or more values.there is differente type of operators unary,binary or ternary -
What binary operators do you know?
‘=’ equal
‘+’ plus
'- 'minus
‘*’ multiply
‘/’ dvide
‘%’ modulus
‘!=’ not equal
‘===’ absolutely equal
'< ’ less than
‘>’ greater than
‘<=’ less than or equal
‘>=’ greater or equal -
What logical operators do you know?
‘&&’ and
‘||’ or
‘!’ not
-
Operators are elements that can manipulate values.
(==) equal to
(!=) not equal
(<) less
(>) greater
(>=) greater or equal to
(<=) less or equal to
(&&) Logical AND
(II) Logical OR
(-) minus
(+) plus
(*) multiple
(/) divide
And (&&)
Or (II)
Not (!)
1- Operators take a value (or 2 if a binary operator) and creates a new value by applying the operator to it
2- arithmetic (+,-,*,%,/), comparison (==,<=,>=,===,!==,<,>) and logical (&&,||)
3- &&,||
-
What are operators?
An operator performs some operation on single or multiple operands (data value) and produces a result. -
What binary operators do you know?
Operators that use two values are called binary operators. Some binary operators are +, x, /, minus -
What logical operators do you know?
There are also some operations that can be applied to Boolean values. JavaScript supports three logical operators: and, or, and not. (&&, ||, !)
- Operators are used to manipulate values.
- +, - , * , / , > , < , => , <= , == , !=
- && , || , !
Hi @rbrownlow!
Good examples of binary and logical operators!
… except that…
… is an example of a ternary operator, which can be used instead of if...else
conditional execution:
if (true) {
console.log(1);
} else {
console.log(2);
}
However, these aren’t actually good examples, as the condition (true)
will always evaluate to true
, so both of them will always output 1
.
Can you think of a better example of a ternary operator?
- Operator is a symbol, which means a specific process of manipulating with operands and at the end processing some kind of result.
- Binary operators: <, >, ===, ==, =, *, ˆ, -,+, /, %.
- Logical Operators: OR ||, AND &&.
-
An operator preforms an action on a variable, such as doing arithmetic or checking how large or small it is compared to another variable.
-
Binary operators perform arithmetic on variables, such as add or subtract.
- //Add
- //Subtract
/ //Divided by
- //Multiple
% //Modulus
< //Less than
//Greater than
& //AND
| //OR
^ //XOR
~ //Invert each bits
<< //Move all bits onto the left//Move all bits onto the right
//Move all bits onto the right and fill left end with 0
- Logical operators determine the relationship between two variables, and returns a boolean answer. For example, 2 > 3 would return false.
, <. ==, ===, >=, <=, !==, !===
&&, ||, !
-
Operators are basically like calculator function they take multiple values and change them based on the operator. ie: The + operator will add 2 values together.
-
Binary operators that I know are: Plus, Minus, Multiplication, Division, Remainder.
-
Logical operators that I know are: and, or, and not
-
JavaScript operators are used to assign values,compare values,perform arithmetic operations and
more. -
True or false
-
and
or
not