Files
freeCodeCamp/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/divide-one-number-by-another-with-javascript.md
freeCodeCamp's Camper Bot e6b05ee25d chore(i18n,learn): processed translations (#54537)
Co-authored-by: Naomi <nhcarrigan@gmail.com>
2024-04-26 12:26:37 +07:00

60 lines
1000 B
Markdown

---
id: cf1111c1c11feddfaeb6bdef
title: قسّم رقمًا على رَقْم آخر باستخدام JavaScript
challengeType: 1
videoUrl: 'https://scrimba.com/c/cqkbdAr'
forumTopicId: 17566
dashedName: divide-one-number-by-another-with-javascript
---
# --description--
يمكننا أيضًا قسمة رَقْم على آخر.
يستخدم JavaScript رمز `/` لعملية القسمة.
**مثال**
```js
const myVar = 16 / 2;
```
لدي `myVar` قيمة `8` الآن.
# --instructions--
غيّر `0` بحيث أن `quotient` تساوي `2`.
# --hints--
يجب أن يساوي المتغير `quotient` قيمة 2.
```js
assert(quotient === 2);
```
يجب عليك استخدام المشغل `/`.
```js
assert(/\d+\s*\/\s*\d+/.test(__helpers.removeJSComments(code)));
```
# --seed--
## --after-user-code--
```js
(function(z){return 'quotient = '+z;})(quotient);
```
## --seed-contents--
```js
const quotient = 66 / 0;
```
# --solutions--
```js
const quotient = 66 / 33;
```