PS Assignment Operators Flashcards

1
Q

Sets the value of a variable to the specified value.

A

=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Increases the value of the variable by the specified value, or appends the specified value to the existing value.

A

+=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Decreases the value of a variable by the specified value.

A

-=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Multiplies the value of a variable by the specified value, or appends the specified value to the existing value.

A

*=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Divides the value of a variable by the specified value.

A

/=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Divides the value of a variable by the specified value and then assigns the remainder (modulus) to the variable.

A

%=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Increases the value of a variable, assignable property, or array element by 1.

A

++

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Decreases the value of a variable, assignable property, or array element by 1.

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly