mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-31 06:01:50 -05:00
984 B
984 B
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| cf1111c1c11feddfaeb4bdef | طرح رقم من الآخر باستخدام JavaScript | 1 | https://scrimba.com/c/cP3yQtk | 18314 | subtract-one-number-from-another-with-javascript |
--description--
يمكننا أيضا أن نطرح رقما من الآخر.
يستخدم JavaScript رمز - للطرح.
مثال
const myVar = 12 - 6;
لدي myVar قيمة 6 الآن.
--instructions--
غيّر 0 بحيث يكون الفرق 12.
--hints--
يجب أن يساوي difference قيمة 12.
assert(difference === 12);
يجب عليك طرح رَقَم واحد فقط من 45.
assert(/difference=45-33;?/.test(__helpers.removeWhiteSpace(code)));
--seed--
--after-user-code--
(function(z){return 'difference = '+z;})(difference);
--seed-contents--
const difference = 45 - 0;
--solutions--
const difference = 45 - 33;