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

914 B

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
bd7993c9c69feddfaeb7bdef JavaScript で 2 つの小数を掛け合わせる 1 https://scrimba.com/c/ce2GeHq 301173 multiply-two-decimals-with-javascript

--description--

JavaScript では小数の計算も整数と同様に行えます。

2 つの小数を掛け合わせて積を計算してみましょう。

--instructions--

0.0 を変更して、積が 5.0 と等しくなるようにしてください。

--hints--

変数 product5.0 に等しくなる必要があります。

assert(product === 5.0);

* 演算子を使用する必要があります。

assert(/\*/.test(code));

--seed--

--after-user-code--

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

--seed-contents--

const product = 2.0 * 0.0;

--solutions--

const product = 2.0 * 2.5;