chore(i18n,curriculum): update translations (#43615)
This commit is contained in:
@ -85,16 +85,13 @@ console.log(i);
|
||||
代码中不应该出现 `var`。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/var/g));
|
||||
assert(!code.match(/var/g));
|
||||
```
|
||||
|
||||
`if` 语句中声明的变量 `i` 应该等于字符串 `block scope`。
|
||||
|
||||
```js
|
||||
(getUserInput) =>
|
||||
assert(
|
||||
getUserInput('index').match(/(i\s*=\s*).*\s*.*\s*.*\1('|")block\s*scope\2/g)
|
||||
);
|
||||
assert(code.match(/(i\s*=\s*).*\s*.*\s*.*\1('|")block\s*scope\2/g));
|
||||
```
|
||||
|
||||
`checkScope()` 应该返回字符串 `function scope`。
|
||||
|
Reference in New Issue
Block a user