mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-31 15:03:21 -05:00
931 B
931 B
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--
يجب أن يساوي المتغير quotient قيمة 2.2
assert(quotient === 2.2);
يجب عليك استخدام المشغل / لتقسيم 4.4 على 2
assert(/4\.40*\s*\/\s*2\.*0*/.test(code));
يجب تعيين متغير quotient مرة واحدة فقط
assert(code.match(/quotient\s*=/g).length === 1);
--seed--
--seed-contents--
const quotient = 0.0 / 2.0; // Change this line
--solutions--
const quotient = 4.4 / 2.0;