chore(i18n,curriculum): update translations (#43615)

This commit is contained in:
camperbot
2021-09-29 08:15:14 -07:00
committed by GitHub
parent cf6cc7fc84
commit c1faed1635
7 changed files with 13 additions and 28 deletions

View File

@ -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`