mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 21:03:58 -05:00
* feat: first draft of action and cypress spec * feat: test all generated challenges * fix: better identification of block * action: update cypress config * action: upload to dashboard * action: testing js cert challenges * fix: unnecessary after user code for Make a Person * feat: capture console log output for assert test * fix: remove after seed code * fix: change const to let * fix: test * action: disable js certification * action: stop checking out branch in action * action: check out right mobile repo Co-authored-by: sembauke <semboot699@gmail.com>
824 B
824 B
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| bd7993c9ca9feddfaeb7bdef | Divide One Decimal by Another with JavaScript | 1 | https://scrimba.com/c/cBZe9AW | 18255 | divide-one-decimal-by-another-with-javascript |
--description--
Now let's divide one decimal by another.
--instructions--
Change the 0.0 so that quotient will equal to 2.2.
--hints--
The variable quotient should equal 2.2
assert(quotient === 2.2);
You should use the / operator to divide 4.4 by 2
assert(/4\.40*\s*\/\s*2\.*0*/.test(code));
The quotient variable should only be assigned once
assert(code.match(/quotient/g).length === 1);
--seed--
--seed-contents--
const quotient = 0.0 / 2.0; // Change this line
--solutions--
const quotient = 4.4 / 2.0;