Types of Operators

There are different types of operators and they each serve a specific purpose.

1. The assignment ( = ) operator is the is the most obvious and is simply used for assigning a value to a variable or property.
2. The arithmetic operators are all used to calculate a numeric value, and are normally used in conjunction with the assignment operator and / or one of the comparison operators.
3. The concatenation operators are used to concatenate ("Join together") expressions.
4. The comparison operators are used for comparing variables and expressions against other variables, constants, or expressions.
5. The logical operators are used for comparing variables and expressions against other variables; all logical operators can also be used as bitwise operators.
6. The bitwise operators are used for comparing binary values bit-by-bit; all bitwise operators can also be used as logical operators.

First
Next