Skip to content

Challenge Decrement A Number With Javascript

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

Challenge Decrement a Number with Javascript

You can easily decrement or decrease a variable by 1 with the -- operator.

i--;

is the equivalent of

i = i - 1;

Note: The entire line becomes i--;, eliminating the need for the equal sign.

Clone this wiki locally