2023-07-29T13:28:07.png

//赋值运算符
var num1 = 1000;
var num2 = num1;
console.log(num2);//1000

var x = 10;
var y = 10;
console.log(x += y);//20
//+= 等于 x加y
console.log(x -= y);//10
//-= 等于 x减y