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.1 KiB
Raw Blame History

id, title, challengeType, videoUrl, localeTitle
id title challengeType videoUrl localeTitle
cf1111c1c11feddfaeb3bdef Add Two Numbers with JavaScript 1 使用JavaScript添加两个数字

Description

Number是JavaScript中的数据类型表示数字数据。现在让我们尝试使用JavaScript添加两个数字。当放置在两个数字之间时JavaScript使用+符号作为加法运算。
myVar = 5 + 10; //分配15

Instructions

更改0使总和等于20

Tests

tests:
  - text: <code>sum</code>应该等于<code>20</code>
    testString: assert(sum === 20);
  - text: 使用<code>+</code>运算符
    testString: assert(/\+/.test(code));

Challenge Seed

var sum = 10 + 0;

After Test

console.info('after the test');

Solution

// solution required