Files
freeCodeCamp/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.md
2023-01-12 05:58:37 +09:00

990 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--

The variable difference should be equal to 12.

assert(difference === 12);

You should only subtract one number from 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;