mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-18 06:01:14 -05:00
260 B
260 B
title
| title |
|---|
| 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.