1.3 KiB
Raw Blame History

id, title, challengeType, videoUrl, forumTopicId, localeTitle
id title challengeType videoUrl forumTopicId localeTitle
cf1231c1c11feddfaeb5bdef Multiply Two Numbers with JavaScript 1 https://scrimba.com/c/cP3y3Aq 18243 Умножить два числа с помощью JavaScript

Description

Мы также можем умножить одно число на другое. JavaScript использует символ * для умножения двух чисел.

пример

myVar = 13 * 13; // присвоено 169

Instructions

Измените 0 чтобы продукт равнялся 80 .

Tests

tests:
  - text: Make the variable <code>product</code> equal 80
    testString: assert(product === 80);
  - text: Use the <code>*</code> operator
    testString: assert(/\*/.test(code));

Challenge Seed

var product = 8 * 0;

After Tests

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

Solution

var product = 8 * 10;