* fix: Chinese test suite Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working. * fix: ran script, updated testStrings and solutions
1.0 KiB
1.0 KiB
id, title, challengeType, videoUrl, localeTitle
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
cf1111c1c11feddfaeb6bdef | Divide One Number by Another with JavaScript | 1 | 用JavaScript划分一个号码 |
Description
/
符号进行除法。 例
myVar = 16/2; //分配8
Instructions
0
,使quotient
等于2
。 Tests
tests:
- text: 使变量<code>quotient</code>等于2。
testString: assert(quotient === 2);
- text: 使用<code>/</code>运算符
testString: assert(/\d+\s*\/\s*\d+/.test(code));
Challenge Seed
var quotient = 66 / 0;
After Test
console.info('after the test');
Solution
// solution required