Skip to content

Challenge Assignment With Times Equals

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

Challenge Assignment with Times Equals

The *= operator multiplies a variable by a number.

myVar = myVar * 5;

will multiply myVar by 5. This can be rewritten as:

myVar *= 5;

Clone this wiki locally