Kristofer Koishigawa b3213fc892 fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite

Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.

* fix: ran script, updated testStrings and solutions
2020-03-03 18:49:47 +05:30

1.0 KiB

id, title, challengeType, videoUrl, localeTitle
id title challengeType videoUrl localeTitle
cf1111c1c11feddfaeb6bdef Divide One Number by Another with JavaScript 1 用JavaScript划分一个号码

Description

我们也可以将一个数字除以另一个数字。 JavaScript使用/符号进行除法。

myVar = 16/2; //分配8

Instructions

更改0 ,使quotient等于2

Tests

tests:
  - text: 使变量<code>quotient</code>等于2。
    testString: assert(quotient === 2);
  - text: 使用<code>/</code>运算符
    testString: assert(/\d+\s*\/\s*\d+/.test(code));

Challenge Seed

var quotient = 66 / 0;

After Test

console.info('after the test');

Solution

// solution required