12 lines
352 B
Markdown
12 lines
352 B
Markdown
|
---
|
||
|
title: Compound Assignment With Augmented Addition
|
||
|
localeTitle: 具有增强加法的复合赋值
|
||
|
---
|
||
|
## 具有增强加法的复合赋值
|
||
|
|
||
|
计算机从左到右阅读。因此,使用'+ ='运算符意味着使用正确的数字添加变量,然后将变量分配给总和。像这样:
|
||
|
```
|
||
|
var a = 9;
|
||
|
a += 10; // Now, 'a' is equal to 19
|
||
|
|
||
|
```
|