--- id: cf1111c1c11feddfaeb6bdef challengeType: 1 videoUrl: 'https://scrimba.com/c/cqkbdAr' forumTopicId: 17566 localeTitle: 除法运算 --- ## Description 我们可以在 JavaScript 中做除法运算。 JavaScript 中使用/符号做除法运算。 示例 ```js myVar = 16 / 2; // assigned 8 ``` ## Instructions 改变数值0来让变量quotient的值等于2。 ## Tests ```yml tests: - text: 要使quotient的值等于 2。 testString: assert(quotient === 2); - text: 使用/运算符。 testString: assert(/\d+\s*\/\s*\d+/.test(code)); ``` ## Challenge Seed ```js var quotient = 66 / 0; ``` ### After Test ```js (function(z){return 'quotient = '+z;})(quotient); ``` ## Solution ```js var quotient = 66 / 33; ```
/
0
quotient
2