Skip to content

Challenge Assignment With Divided By Equals

Quincy Larson edited this page Aug 20, 2016 · 1 revision

Challenge 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;
Clone this wiki locally