Assignment Operators
Operator | Description | Example | Result |
---|---|---|---|
= | Assignment | a = 1 | Variable a is set to 1 |
+= | Addition Assignment | a += 3 | Variable a is set to a + 3 |
-= | Subtraction Assignment | a -= 3 | Variable a is set to a - 3 |
*= | Multiplication Assignment | a *= 3 | "" |
/= | Division Assignment | a /= 3 | "" |
9 / 19