/=
делит переменную на другое число. myVar = myVar / 5;
myVar
на 5
. Это можно переписать как: myVar /= 5;
a
, b
и c
для использования оператора /=
. a
должно равняться 4
testString: 'assert(a === 4, "a
should equal 4
");'
- text: b
должно равняться 27
testString: 'assert(b === 27, "b
should equal 27
");'
- text: c
должно равняться 3
testString: 'assert(c === 3, "c
should equal 3
");'
- text: Вы должны использовать оператор /=
для каждой переменной
testString: 'assert(code.match(/\/=/g).length === 3, "You should use the /=
operator for each variable");'
- text: Не изменяйте код над строкой
testString: 'assert(/var a = 48;/.test(code) && /var b = 108;/.test(code) && /var c = 33;/.test(code), "Do not modify the code above the line");'
```