mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-11 03:02:31 -05:00
1.1 KiB
1.1 KiB
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| cf1111c1c11feddfaeb6bdef | Ділення одного числа на інше з JavaScript | 1 | https://scrimba.com/c/cqkbdAr | 17566 | divide-one-number-by-another-with-javascript |
--description--
Ми можемо також поділити одне число на інше.
JavaScript використовує символ / для ділення.
Приклад
const myVar = 16 / 2;
Тепер myVar має значення 8.
--instructions--
Змініть 0 таким чином, щоб частка (quotient) дорівнювала 2.
--hints--
Змінна quotient (частка) повинна дорівнювати 2.
assert(quotient === 2);
Ви повинні використати оператор /.
assert(/\d+\s*\/\s*\d+/.test(code));
--seed--
--after-user-code--
(function(z){return 'quotient = '+z;})(quotient);
--seed-contents--
const quotient = 66 / 0;
--solutions--
const quotient = 66 / 33;