Files
2022-01-20 20:30:18 +01:00

1.0 KiB

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
bd7993c9ca9feddfaeb7bdef JavaScript で小数どうしの割り算をする 1 https://scrimba.com/c/cBZe9AW 18255 divide-one-decimal-by-another-with-javascript

--description--

小数どうしの割り算をしてみましょう。

--instructions--

0.0 を変更して、quotient (割り算の商) が 2.2 と等しくなるようにしてください。

--hints--

変数 quotient2.2 と等しくなる必要があります。

assert(quotient === 2.2);

/ 演算子を使用して 4.4 を 2.0 で割る必要があります。

assert(/4\.40*\s*\/\s*2\.*0*/.test(code));

変数 quotient には一度だけ代入してください。

assert(code.match(/quotient/g).length === 1);

--seed--

--after-user-code--

(function(y){return 'quotient = '+y;})(quotient);

--seed-contents--

const quotient = 0.0 / 2.0; // Change this line

--solutions--

const quotient = 4.4 / 2.0;