freeCodeCamp/curriculum/challenges/russian/02-javascript-algorithms-an.../basic-javascript/multiply-two-numbers-with-j...

1.3 KiB
Raw Blame History

id title challengeType videoUrl localeTitle
cf1231c1c11feddfaeb5bdef Multiply Two Numbers with JavaScript 1 Умножить два числа с помощью JavaScript

Description

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

пример

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

Instructions

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

Tests

tests:
  - text: Сделать переменный <code>product</code> равным 80
    testString: 'assert(product === 80,"Make the variable <code>product</code> equal 80");'
  - text: Используйте оператор <code>*</code>
    testString: 'assert(/\*/.test(code), "Use the <code>*</code> operator");'

Challenge Seed

var product = 8 * 0;

After Test

console.info('after the test');

Solution

// solution required