1.3 KiB
1.3 KiB
id, title, challengeType, videoUrl, forumTopicId, localeTitle
id | title | challengeType | videoUrl | forumTopicId | localeTitle |
---|---|---|---|---|---|
bd7993c9c69feddfaeb7bdef | Multiply Two Decimals with JavaScript | 1 | https://scrimba.com/c/ce2GeHq | 301173 | Умножить два десятичных знака с помощью JavaScript |
Description
Instructions
0.0
чтобы продукт равнялся 5.0
.
Tests
tests:
- text: The variable <code>product</code> should equal <code>5.0</code>.
testString: assert(product === 5.0);
- text: You should use the <code>*</code> operator
testString: assert(/\*/.test(code));
Challenge Seed
var product = 2.0 * 0.0;
After Tests
(function(y){return 'product = '+y;})(product);
Solution
var product = 2.0 * 2.5;