Randell Dawson 2c15bcbb43 fix(curriculum): changed test text to use should for JavaScript Algorithms and Data Structures (#37761)
* fix: corrected typo

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
2019-11-27 11:57:38 +01:00

1.1 KiB

id, title, challengeType, videoUrl, forumTopicId
id title challengeType videoUrl forumTopicId
cf1231c1c11feddfaeb5bdef Multiply Two Numbers with JavaScript 1 https://scrimba.com/c/cP3y3Aq 18243

Description

We can also multiply one number by another. JavaScript uses the * symbol for multiplication of two numbers.

Example

myVar = 13 * 13; // assigned 169

Instructions

Change the 0 so that product will equal 80.

Tests

tests:
  - text: The variable <code>product</code> should be equal to 80.
    testString: assert(product === 80);
  - text: You should use the <code>*</code> operator.
    testString: assert(/\*/.test(code));

Challenge Seed

var product = 8 * 0;


After Test

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

Solution

var product = 8 * 10;