Operators Flashcards
1
Q
x + y (numeric)
A
Adds x and y together
2
Q
x + y (string)
A
Concatenates x and y together
3
Q
x - y
A
Subtracts y from x
4
Q
x * y
A
Multiplies x and y together
5
Q
x / y
A
Divides x by y
6
Q
x % y
A
Modulus: The remainder when x is divided by y
7
Q
x++, ++x
A
Adds one to x
8
Q
x–, –x
A
Subtracts one from x
9
Q
-x
A
Reverses the sign on x