mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 21:03:58 -05:00
972 B
972 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;