* 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
1.1 KiB
1.1 KiB
id, title, challengeType, videoUrl, localeTitle
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
56533eb9ac21ba0edf2244a9 | Initializing Variables with the Assignment Operator | 1 | 使用赋值运算符初始化变量 |
Description
var myVar = 0;
创建一个名为myVar
的新变量,并为其指定初始值0
。 Instructions
var
定义变量a
并将其初始化为值9
。 Tests
tests:
- text: 将<code>a</code>初始化为值<code>9</code>
testString: assert(/var\s+a\s*=\s*9\s*/.test(code));
Challenge Seed
// Example
var ourVar = 19;
// Only change code below this line
After Test
console.info('after the test');
Solution
// solution required