Files
freeCodeCamp/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/multiply-two-decimals-with-javascript.md
freeCodeCamp's Camper Bot e6b05ee25d chore(i18n,learn): processed translations (#54537)
Co-authored-by: Naomi <nhcarrigan@gmail.com>
2024-04-26 12:26:37 +07:00

1.1 KiB
Raw Blame History

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
bd7993c9c69feddfaeb7bdef Множення двох десяткових чисел з JavaScript 1 https://scrimba.com/c/ce2GeHq 301173 multiply-two-decimals-with-javascript

--description--

У JavaScript ви можете здійснювати розрахунки як з цілими числами, так і десятковими.

Перемножимо два десяткових числа, щоб отримати їх добуток.

--instructions--

Змініть 0.0 так, щоб добуток дорівнював 5.0.

--hints--

Змінна product повинна дорівнювати 5.0.

assert(product === 5.0);

Ви повинні використати оператор *

assert(/\*/.test(__helpers.removeJSComments(code)));

--seed--

--after-user-code--

(function(y){return 'product = '+y;})(product);

--seed-contents--

const product = 2.0 * 0.0;

--solutions--

const product = 2.0 * 2.5;