mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 21:03:58 -05:00
556 B
556 B
id, title, challengeType, videoUrl, forumTopicId
| id | title | challengeType | videoUrl | forumTopicId |
|---|---|---|---|---|
| cf1111c1c11feddfaeb6bdef | 除法运算 | 1 | https://scrimba.com/c/cqkbdAr | 17566 |
--description--
我们可以在 JavaScript 中做除法运算。
JavaScript 中使用/符号做除法运算。
示例
myVar = 16 / 2; // assigned 8
--instructions--
改变数值0来让变量quotient的值等于2。
--hints--
要使quotient的值等于 2。
assert(quotient === 2);
使用/运算符。
assert(/\d+\s*\/\s*\d+/.test(code));