/=
操作符是让变量与另一个数相除并赋值。
myVar = myVar / 5;
变量myVar
等于自身除以5
的值。等价于:
myVar /= 5;
/=
操作符实现同样的效果。
a
应该等于4
。
testString: assert(a === 4);
- text: b
应该等于27
。
testString: assert(b === 27);
- text: c
应该等于3
。
testString: assert(c === 3);
- text: 应该对每个变量使用/=
操作符。
testString: assert(code.match(/\/=/g).length === 3);
- text: 不要修改注释上面的代码。
testString: assert(/var a = 48;/.test(code) && /var b = 108;/.test(code) && /var c = 33;/.test(code));
```