mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-14 12:09:12 -05:00
1.1 KiB
1.1 KiB
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| bd7993c9ca9feddfaeb7bdef | Ділення одного десяткового числа на інше з JavaScript | 1 | https://scrimba.com/c/cBZe9AW | 18255 | divide-one-decimal-by-another-with-javascript |
--description--
Тепер поділимо одне десяткове число на інше.
--instructions--
Змініть 0.0 таким чином, щоб частка (quotient) дорівнювала 2.2.
--hints--
Змінна quotient (частка) повинна дорівнювати 2.2
assert(quotient === 2.2);
Ви повинні використати оператор /, щоб поділити 4.4 на 2
assert(/4\.40*\s*\/\s*2\.*0*/.test(code));
Змінна-частка повинна бути присвоєна лише раз
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;