This commit adds the pre-existing challenge guide topics in the forum to the forntmatter of their challenge markdown files.
1.1 KiB
1.1 KiB
id, title, challengeType, videoUrl, forumTopicId
id | title | challengeType | videoUrl | forumTopicId |
---|---|---|---|---|
cf1111c1c11feddfaeb6bdef | Divide One Number by Another with JavaScript | 1 | https://scrimba.com/c/cqkbdAr | 17566 |
Description
/
symbol for division.
Example
myVar = 16 / 2; // assigned 8
Instructions
0
so that the quotient
is equal to 2
.
Tests
tests:
- text: Make the variable <code>quotient</code> equal to 2.
testString: assert(quotient === 2);
- text: Use the <code>/</code> operator
testString: assert(/\d+\s*\/\s*\d+/.test(code));
Challenge Seed
var quotient = 66 / 0;
After Test
(function(z){return 'quotient = '+z;})(quotient);
Solution
var quotient = 66 / 33;