Skip to content

Challenge Assignment with Divided by Equals

SaintPeter edited this page · 1 revision
Clone this wiki locally

Assignment with Divided by Equals

The /= operator divides a variable by another number.

myVar = myVar / 5;

Will divide myVar by 5. This can be rewritten as:

myVar /= 5;

Something went wrong with that request. Please try again.