15 lines
484 B
Markdown
15 lines
484 B
Markdown
---
|
||
title: Decrement a Number with JavaScript
|
||
localeTitle: Уменьшить число с помощью JavaScript
|
||
---
|
||
Вы можете легко уменьшать или уменьшить переменную на `1` с `--` оператором.
|
||
```
|
||
i--;
|
||
```
|
||
|
||
является эквивалентом
|
||
```
|
||
i = i - 1;
|
||
```
|
||
|
||
**Примечание:** вся строка становится `i--;` , устраняя необходимость равенства знака. |