Files
freeCodeCamp/curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/basic-javascript/divide-one-number-by-another-with-javascript.russian.md

1.3 KiB
Raw Blame History

id, title, challengeType, videoUrl, forumTopicId, localeTitle
id title challengeType videoUrl forumTopicId localeTitle
cf1111c1c11feddfaeb6bdef Divide One Number by Another with JavaScript 1 https://scrimba.com/c/cqkbdAr 17566 Разделите одно число другим с помощью JavaScript

Description

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

пример

myVar = 16/2; // присвоено 8

Instructions

Измените значение 0 так, чтобы quotient был равен 2 .

Tests

tests:
  - text: Make the variable <code>quotient</code> equal to 2.
    testString: assert(quotient === 2);
  - text: Use the <code>/</code> operator
    testString: assert(/\d+\s*\/\s*\d+/.test(code));

Challenge Seed

var quotient = 66 / 0;

After Tests

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

Solution

var quotient = 66 / 33;