1.0 KiB
1.0 KiB
id, challengeType, videoUrl, forumTopicId, title
id | challengeType | videoUrl | forumTopicId | title |
---|---|---|---|---|
bd7993c9c69feddfaeb7bdef | 1 | https://scrimba.com/c/ce2GeHq | 301173 | 两个小数相乘 |
Description
Instructions
0.0
的数值让变量product
的值等于5.0
。
Tests
tests:
- text: 变量<code>product</code>应该等于<code>5.0</code>。
testString: assert(product === 5.0);
- text: 要使用<code>*</code>运算符。
testString: assert(/\*/.test(code));
Challenge Seed
var product = 2.0 * 0.0;
After Test
(function(y){return 'product = '+y;})(product);
Solution
var product = 2.0 * 2.5;