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

This commit is contained in:
camperbot
2021-04-30 00:43:46 +09:00
committed by GitHub
parent 3b056aa7b4
commit 2762d4b8e5
14 changed files with 67 additions and 51 deletions

View File

@ -2,8 +2,8 @@
id: bd7123c9c441eddfaeb4bdef
title: 给代码添加注释
challengeType: 1
videoUrl: 'https://scrimba.com/c/c7ynnTp'
removeComments: false
videoUrl: 'https://scrimba.com/c/c7ynnTp'
forumTopicId: 16783
dashedName: comment-your-javascript-code
---

View File

@ -19,7 +19,7 @@ var sandwich = ["peanut butter", "jelly", "bread"]
# --instructions--
创建一个包含字符串(`string`)和数字( `number`)(按照字符串数字的顺序)的数组`myArray`
创建一个包含字符串(`string`)和数字( `number`)(按照字符串数字的顺序)的数组 `myArray`
# --hints--

View File

@ -32,7 +32,9 @@ dashedName: understanding-the-differences-between-the-freecodecamp-and-browser-c
```js
assert(
__helpers.removeWhiteSpace(code).match(/console.clear\(\)/)
__helpers
.removeWhiteSpace(code)
.match(/console.clear\(\)/)
);
```

View File

@ -32,9 +32,7 @@ const myPromise = new Promise((resolve, reject) => {
```js
assert(
code.match(
/if\s*\(\s*responseFromServer\s*\)\s*{\s*resolve\s*\(\s*('|"|`)We got the data\1\s*\)(\s*|\s*;\s*)}/g
)
code.match(/if\s*\(\s*responseFromServer\s*\)\s*{\s*resolve\s*\(\s*('|"|`)We got the data\1\s*\)(\s*|\s*;\s*)}/g)
);
```
@ -42,9 +40,7 @@ assert(
```js
assert(
code.match(
/}\s*else\s*{\s*reject\s*\(\s*('|"|`)Data not received\1\s*\)(\s*|\s*;\s*)}/g
)
code.match(/}\s*else\s*{\s*reject\s*\(\s*('|"|`)Data not received\1\s*\)(\s*|\s*;\s*)}/g)
);
```

View File

@ -51,9 +51,7 @@ assert(
```js
assert(
code.match(
/(var|let|const)\s*{\s*(today[^}]*|[^,]*,\s*today)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g
)
code.match(/(var|let|const)\s*{\s*(today[^}]*|[^,]*,\s*today)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g)
);
```
@ -61,9 +59,7 @@ assert(
```js
assert(
code.match(
/(var|let|const)\s*{\s*(tomorrow[^}]*|[^,]*,\s*tomorrow)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g
)
code.match(/(var|let|const)\s*{\s*(tomorrow[^}]*|[^,]*,\s*tomorrow)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g)
);
```