JavaScript学习笔记02--基本运算符(basic operators)
1.+=
let x =15;
x += 10 ;//x = x + 10 = 25;
2.*=
let x =15;
x *= 10 ;//x = x * 10 = 150
3.++
let x =15;
x ++ ;//x = x + 1 = 16
4.--
let x =15;
x -- ;//x = x - 1 = 14
5.运算符的优先级
详细参考mdn中的介绍:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Operator_Precedence