📜  4.7.2.复合赋值运算符¶ - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:14.600000             🧑  作者: Mango

代码示例2
/*This action is so common, in fact, that it has a shorthand operator,
+=. The following example has the same behavior as the one above.*/

let x = 1;
x += 1;

console.log(x);

//2