赋值运算符
var a=1;
//在原来的基础上加1
//a++;
//a++相当于等于a=a+1
a++;
console.log(a);
var b=1;
//(相当于b=b+3可简写为b+=3)
//b=b+3;
//b=b+3可以简写b+=3
b+=3;
console.log(b);
//练习:声明变量保存商品的价格,将价格实现打八折,最后打印价格
//(相当于c=c*0.8简写为c*=0.8)
var c=1000;
c*=0.8;
console.log(c);