Files
freeCodeCamp/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/divide-one-number-by-another-with-javascript.md
2022-10-20 09:13:17 -07:00

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;