- What are operators?
They are actions to be performed upon values, either unary binary or ternary - What binary operators do you know?
numerical +,-,*,/ or string + (to concatenate words) or boolean true false - What logical operators do you know?
&& logical ‘and’, || logical ‘or’, and ! logical ‘not’
Hi @sherlock,
Nice answers!
And just to add…
… and the arithmetic operators e.g. + - / * %
… and !
(NOT)
Excellent analysis, @hubitutl!
I can see you’ve enjoyed researching operators in depth!
When you start investigating, it seems that operators are never-ending. Believe me, I’ve been there and had to draw a line at some point
Nice answers, @jpc!
Just one observation for clarification…
The Booleans true
and false
are values, not operators. However, the comparison operators (e.g. >
<
<=
>=
===
!==
etc.) do operate on two values and produce a Boolean. Maybe this is what you meant…
-
Operators are symbols that tells the program what to do with a certain value within the specific program to then evaluate and give a certain end-value. Symbols like, +, -, *, /.
-
I know > (greater than), < (less than), and == (equal to).
-
&& (and), II (or), ! (not).
- Operators give commands to values
-
-
-
- / % == != <= >= < > = += -= /= %= *= && ||
-
-
- Or (||), and (&&), not (!)
Operator are used to transform values.
+, -, /, *, %
&&, || (and, or)
- Operators are symbols that give value to variables .
- Binary operators + - * / , < >
- == , &&, !
- operators allow programs to make decisions.
-
- , - , *, /, %
- AND, OR
-
What are operators?
An operator performs some operation on single or multible data values and produces a result. There are for example arithmetic, comparison and logical operators. -
what binary operatos do you know?
+,-,*,/,%,&&,||,==,<,>,<=,>=,!=,&,|,<<,>> -
What logical operators do you know?
&&,||,!
What are operators?
They can be used to combine and transform values.
What binary operators do you know?
+, -, *, /, %
What logical operators do you know?
&&, ||
Hi @Enoch,
Qs 2 & 3
…not really…
Operators perform different kinds of actions on values i.e. they operate on them.
…This is not an operator I’ve ever seen… I assume this was a formatting error
Hi @Troydiesel,
Q2 & 3
This is good explanation of what assignment operators do e.g. =
, +=
, -=
etc.
But these are only one type of operator. More generally, operators perform different kinds of actions on values i.e. they operate on them.
- What are operators?
Performs some operation on an operand or values and produces a result - What binary operators do you know?
+, -, /, *, %, ++, - - - What logical operators do you know?
And &&
or ||
Not !
-
instructions for calculating with values; compare values; or perform some logic on values
-
binary operators for arithmetic (+, -, *, /, and %),
string concatenation (+),
comparison (==, !=, ===, !==, <, >, <=, >=), and -
logic o.: and (&&), or(||) and ! (not)
Hi @Wevlin,
Good answers
Just one observation…
The increment operator ++
and the decrement operator --
are actually unary operators (not binary operators) because they only operate on one value (adding or subtracting 1 to/from it) rather than on two values.
Boolean Expressions Reading assignment
- What are operators?
- What binary operator's do you know? How about Logical?
Operators are symbols used to tell the computer to manipulate a specified value(s)
-
arithmetic operators<(+,*,/ ectera)note ++ and -- are not binary as they only operate on 1 value adding or subtracting 1. (Shout out @jon_m for the insight)
The assignment operators (x=y, /x=y ectera) string operators use to (among other things) concentrate strings. Example
Var text1 = "Fresh" ; Var text 2 = "the genius" ; Var text 3 = (text 1 + " " + text 2) return
yields Fresh the Genius
Comparison Operators
== equal too , != not equal too ectera
Logical operators&& Logical and II Logical Or ! Logical not.
Type OperatorsType of returns the type of a variable and Instance of returns true if the object is the specific instance type the object type.
Bitwise OperatorsBitwise operators work with/on 32 bit numbers (& aka and, ^ AKA XOR)
This listings is not exhaustive
Great feedback thank you!
- Operators can be symbols like +, -, * and / which take two number values and produce a new number from them. Operators can also be written as words like the “typeOf” operator and logical operators like “and” “or” and “not”. Ternary Operators aka conditional operators work on 3 values and is written with a “?” and a “:”. The value on the left of the question mark “picks” which of the other tow 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.
- +, -, /,*, %, >,<,==
- && and || (or) ! (not)