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));