Files
freeCodeCamp/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/divide-one-number-by-another-with-javascript.md
2022-12-22 09:23:26 -08:00

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;