--- id: bd7993c9c69feddfaeb7bdef title: Multiply Two Decimals with JavaScript challengeType: 1 videoUrl: 'https://scrimba.com/c/ce2GeHq' --- ## Description
In JavaScript, you can also perform calculations with decimal numbers, just like whole numbers. Let's multiply two decimals together to get their product.
## Instructions
Change the 0.0 so that product will equal 5.0.
## Tests
```yml tests: - text: The variable product should equal 5.0. testString: assert(product === 5.0, 'The variable product should equal 5.0.'); - text: You should use the * operator testString: assert(/\*/.test(code), 'You should use the * operator'); ```
## Challenge Seed
```js var product = 2.0 * 0.0; ```
### After Test
```js (function(y){return 'product = '+y;})(product); ```
## Solution
```js var product = 2.0 * 2.5; ```