Randell Dawson e9212c61d2 fix(curriculum): Remove unnecessary assert message argument from English challenges JavaScript Algorithms and Data Structures - 01 (#36401)
* fix: rm assert msg basic-javascript

* fix: removed more assert msg args

* fix: fixed verbiage

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
2019-07-13 08:07:53 +01:00

1.0 KiB

id, title, challengeType, videoUrl
id title challengeType videoUrl
bd7993c9c69feddfaeb7bdef Multiply Two Decimals with JavaScript 1 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

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 Test

(function(y){return 'product = '+y;})(product);

Solution

var product = 2.0 * 2.5;