1.3 KiB
1.3 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
cf1111c1c11feddfaeb6bdef | Divide One Number by Another with JavaScript | 1 | قسمة رقم واحد على آخر باستخدام JavaScript |
Description
/
للقسمة. مثال
myVar = 16/2؛ // تعيين 8
Instructions
0
بحيث يكون quotient
تساوي 2
. Tests
tests:
- text: اجعل <code>quotient</code> المتغير تساوي 2.
testString: 'assert(quotient === 2, "Make the variable <code>quotient</code> equal to 2.");'
- text: استخدم <code>/</code> المشغل
testString: 'assert(/\d+\s*\/\s*\d+/.test(code), "Use the <code>/</code> operator");'
Challenge Seed
var quotient = 66 / 0;
After Test
console.info('after the test');
Solution
// solution required