PS Assignment Operators Flashcards
1
Q
Sets the value of a variable to the specified value.
A
=
2
Q
Increases the value of the variable by the specified value, or appends the specified value to the existing value.
A
+=
3
Q
Decreases the value of a variable by the specified value.
A
-=
4
Q
Multiplies the value of a variable by the specified value, or appends the specified value to the existing value.
A
*=
5
Q
Divides the value of a variable by the specified value.
A
/=
6
Q
Divides the value of a variable by the specified value and then assigns the remainder (modulus) to the variable.
A
%=
7
Q
Increases the value of a variable, assignable property, or array element by 1.
A
++
8
Q
Decreases the value of a variable, assignable property, or array element by 1.
A
–