Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (6 sloc) 244 Bytes

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.

Something went wrong with that request. Please try again.