mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 21:03:58 -05:00
966 B
966 B
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| bd7993c9c69feddfaeb7bdef | اضرب رقمين عشريين بواسطة JavaScript | 1 | https://scrimba.com/c/ce2GeHq | 301173 | multiply-two-decimals-with-javascript |
--description--
في JavaScript، يمكنك أيضًا إجراء حسابات بأرقام عشرية، تماما مثل الأرقام صحيحة.
دعونا نضرب عددين عشريين معًا لنحصل على حاصل ضربهما.
--instructions--
غيّر 0.0 بحيث يساوي الناتج 5.0.
--hints--
يجب أن يساوي المتغير product قيمة 5.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;