Files

53 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: bd7993c9c69feddfaeb7bdef
title: Множення двох десяткових чисел за допомогою JavaScript
challengeType: 1
videoUrl: 'https://scrimba.com/c/ce2GeHq'
forumTopicId: 301173
dashedName: multiply-two-decimals-with-javascript
---
# --description--
У JavaScript, ви можете здійснювати розрахунки як з десятковими числами, так і цілими числами.
Перемножимо два десяткових числа, щоб отримати їх добуток.
# --instructions--
Змініть `0.0` так, щоб добуток дорівнював `5.0`.
# --hints--
Змінна `product` повинна дорівнювати `5.0`.
```js
assert(product === 5.0);
```
Вам слід використовувати оператор `*`
```js
assert(/\*/.test(code));
```
# --seed--
## --after-user-code--
```js
(function(y){return 'product = '+y;})(product);
```
## --seed-contents--
```js
const product = 2.0 * 0.0;
```
# --solutions--
```js
const product = 2.0 * 2.5;
```