1008 B
1008 B
id, title, challengeType, videoUrl, forumTopicId, dashedName
id | title | challengeType | videoUrl | forumTopicId | dashedName |
---|---|---|---|---|---|
cf1111c1c11feddfaeb6bdef | JavaScript で数値どうしの割り算をする | 1 | https://scrimba.com/c/cqkbdAr | 17566 | divide-one-number-by-another-with-javascript |
--description--
数値どうしの割り算をすることもできます。
JavaScript では除算記号として /
を使用します。
例
const myVar = 16 / 2;
myVar
の値は 8
になります。
--instructions--
0
を変更して、quotient
(割り算の商) が 2
と等しくなるようにしてください。
--hints--
変数 quotient
が 2 と等しくなる必要があります。
assert(quotient === 2);
/
演算子を使用してください。
assert(/\d+\s*\/\s*\d+/.test(code));
--seed--
--after-user-code--
(function(z){return 'quotient = '+z;})(quotient);
--seed-contents--
const quotient = 66 / 0;
--solutions--
const quotient = 66 / 33;