1.1 KiB
1.1 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, "Make the variable <code>quotient</code> equal to 2.");'
- text: 使用<code>/</code>运算符
testString: 'assert(/\d+\s*\/\s*\d+/.test(code), "Use the <code>/</code> operator");'
Challenge Seed
var quotient = 66 / 0;
After Test
console.info('after the test');
Solution
// solution required