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