--- id: bd7993c9c69feddfaeb7bdef title: Multiply Two Decimals with JavaScript challengeType: 1 videoUrl: '' localeTitle: 使用JavaScript乘以两个小数 --- ## Description
在JavaScript中,您也可以使用十进制数执行计算,就像整数一样。让我们将两位小数相乘得到它们的乘积。
## Instructions
更改0.0使产品等于5.0
## Tests
```yml tests: - text: 变量product应该等于5.0 。 testString: 'assert(product === 5.0, "The variable product should equal 5.0.");' - text: 你应该使用*运算符 testString: 'assert(/\*/.test(code), "You should use the * operator");' ```
## Challenge Seed
```js var product = 2.0 * 0.0; ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```