Operators are the tools we use to relate two values and produce a new value using mathematics and logic. In other words, they are the symbols that allow us to apply arithmetic, such as addition, subtraction, multiplication, and division. We also use them to compare and evaluate the differences and similarities of values. Also, there is an arithmetic operator we use for finding the remainder in a math equation, which we call the modulo.
What binary operators do you know?
Addition (+)
Subtraction (-)
Multiplication (*)
Division (/)
Less than (<)
Greater than (>)
Equal (==)
Not Equal (!=)
Less than or equal to (<=)
Greater than or equal to (>=)
logical and (&&)
logical or (||)
logical not (!)
What logical operators do you know?
&& (logical and) || (logical or) ! (logical not) ? : ( conditional operator)