* feat(curriculum): Add Basic JS Scrimba links * Fix: Add missing video url. * fix: update videoUrl
1.2 KiB
1.2 KiB
id, title, challengeType, videoUrl
id | title | challengeType | videoUrl |
---|---|---|---|
bd7993c9c69feddfaeb7bdef | Multiply Two Decimals with JavaScript | 1 | https://scrimba.com/c/ce2GeHq |
Description
Instructions
0.0
so that product will equal 5.0
.
Tests
tests:
- text: The variable <code>product</code> should equal <code>5.0</code>.
testString: assert(product === 5.0, 'The variable <code>product</code> should equal <code>5.0</code>.');
- text: You should use the <code>*</code> operator
testString: assert(/\*/.test(code), 'You should use the <code>*</code> operator');
Challenge Seed
var product = 2.0 * 0.0;
After Test
(function(y){return 'product = '+y;})(product);
Solution
var product = 2.0 * 2.5;