chore(i18n,learn): processed translations (#54537)

Co-authored-by: Naomi <nhcarrigan@gmail.com>
This commit is contained in:
freeCodeCamp's Camper Bot
2024-04-26 10:56:37 +05:30
committed by GitHub
parent adfb87e898
commit e6b05ee25d
2107 changed files with 8339 additions and 3516 deletions

View File

@@ -30,13 +30,13 @@ arr.push(4, 5, 6);
应该使用 `concat` 方法。
```js
assert(code.match(/\.concat/g));
assert(__helpers.removeJSComments(code).match(/\.concat/g));
```
不能使用 `push` 方法。
```js
assert(!code.match(/\.?[\s\S]*?push/g));
assert(!__helpers.removeJSComments(code).match(/\.?[\s\S]*?push/g));
```
不能改变 `first` 数组。

View File

@@ -31,7 +31,7 @@ dashedName: apply-functional-programming-to-convert-strings-to-url-slugs
不能使用 `replace` 方法。
```js
assert(!code.match(/\.?[\s\S]*?replace/g));
assert(!__helpers.removeJSComments(code).match(/\.?[\s\S]*?replace/g));
```
`urlSlug("Winter Is Coming")` 应返回 `winter-is-coming`

View File

@@ -27,13 +27,13 @@ const str = arr.join(" ");
应使用 `join` 方法。
```js
assert(code.match(/\.join/g));
assert(__helpers.removeJSComments(code).match(/\.join/g));
```
不能使用 `replace` 方法。
```js
assert(!code.match(/\.?[\s\S]*?replace/g));
assert(!__helpers.removeJSComments(code).match(/\.?[\s\S]*?replace/g));
```
`sentensify("May-the-force-be-with-you")` 应返回一个字符串。

View File

@@ -25,7 +25,7 @@ dashedName: combine-two-arrays-using-the-concat-method
应该使用 `concat` 方法。
```js
assert(code.match(/\.concat/g));
assert(__helpers.removeJSComments(code).match(/\.concat/g));
```
不应该改变 `first` 数组。

View File

@@ -47,7 +47,7 @@ assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_
你的代码不应该使用 `map` 方法。
```js
assert(!code.match(/\.?[\s\S]*?map/g));
assert(!__helpers.removeJSComments(code).match(/\.?[\s\S]*?map/g));
```
# --seed--

View File

@@ -43,7 +43,7 @@ assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFi
你的代码不应该使用 `filter` 方法。
```js
assert(!code.match(/\.?[\s\S]*?filter/g));
assert(!__helpers.removeJSComments(code).match(/\.?[\s\S]*?filter/g));
```
# --seed--

View File

@@ -77,7 +77,7 @@ assert(add(11)(22)(33) === 66);
应返回 `x + y + z` 的最终结果。
```js
assert(code.match(/[xyz]\s*?\+\s*?[xyz]\s*?\+\s*?[xyz]/g));
assert(__helpers.removeJSComments(code).match(/[xyz]\s*?\+\s*?[xyz]\s*?\+\s*?[xyz]/g));
```
# --seed--

View File

@@ -30,13 +30,13 @@ cities.splice(3, 1);
你的代码中应使用 `slice` 方法。
```js
assert(code.match(/\.slice/g));
assert(__helpers.removeJSComments(code).match(/\.slice/g));
```
不能使用 `splice` 方法。
```js
assert(!code.match(/\.?[\s\S]*?splice/g));
assert(!__helpers.removeJSComments(code).match(/\.?[\s\S]*?splice/g));
```
You should not mutate the original array passed to the function.

View File

@@ -28,7 +28,7 @@ const newArray = arr.slice(1, 3);
应该使用 `slice` 方法。
```js
assert(code.match(/\.slice/g));
assert(__helpers.removeJSComments(code).match(/\.slice/g));
```
不能改变 `inputAnim` 变量。

View File

@@ -47,7 +47,7 @@ JavaScript 的默认排序方法是 Unicode 值顺序排序,有时可能会得
应该使用 `sort` 方法。
```js
assert(code.match(/\.sort/g));
assert(__helpers.removeJSComments(code).match(/\.sort/g));
```
`alphabeticalOrder(["a", "d", "c", "a", "z", "g"])` 应返回 `["a", "a", "c", "d", "g", "z"]`

View File

@@ -33,7 +33,7 @@ const byDigits = otherString.split(/\d/);
应该使用 `split` 方法。
```js
assert(code.match(/\.split/g));
assert(__helpers.removeJSComments(code).match(/\.split/g));
```
`splitify("Hello World,I-am code")` 应返回 `["Hello", "World", "I", "am", "code"]`

View File

@@ -28,7 +28,7 @@ assert.typeOf(squareList, 'function'),
不应该使用 `for``while` 或者 `forEach`
```js
assert(!code.match(/for|while|forEach/g));
assert(!__helpers.removeJSComments(code).match(/for|while|forEach/g));
```
应该使用 `map``filter` 或者 `reduce`
@@ -36,7 +36,7 @@ assert(!code.match(/for|while|forEach/g));
```js
assert(
__helpers
.removeWhiteSpace(code)
.removeWhiteSpace(__helpers.removeJSComments(code))
.match(/\.(map|filter|reduce)\(/g)
);
```

View File

@@ -31,7 +31,7 @@ numbers.every(function(currentValue) {
应使用`every`方法。
```js
assert(code.match(/\.every/g));
assert(__helpers.removeJSComments(code).match(/\.every/g));
```
`checkPositive([1, 2, 3, -4, 5])` 应返回 `false`

View File

@@ -46,13 +46,13 @@ assert(
应使用 `filter` 方法。
```js
assert(code.match(/\s*\.\s*filter/g));
assert(__helpers.removeJSComments(code).match(/\s*\.\s*filter/g));
```
不能使用 `for` 循环。
```js
assert(!code.match(/for\s*?\([\s\S]*?\)/g));
assert(!__helpers.removeJSComments(code).match(/for\s*?\([\s\S]*?\)/g));
```
`filteredList` 应该等于 `[{"title": "Inception", "rating": "8.8"}, {"title": "Interstellar", "rating": "8.6"}, {"title": "The Dark Knight", "rating": "9.0"}, {"title": "Batman Begins", "rating": "8.3"}]`

View File

@@ -52,13 +52,13 @@ assert(
不能使用 `for` 循环。
```js
assert(!code.match(/for\s*?\([\s\S]*?\)/));
assert(!__helpers.removeJSComments(code).match(/for\s*?\([\s\S]*?\)/));
```
你的代码应使用 `map` 方法。
```js
assert(code.match(/\.map/g));
assert(__helpers.removeJSComments(code).match(/\.map/g));
```
`ratings` 应该等于 `[{"title": "Inception", "rating": "8.8"}, {"title": "Interstellar", "rating": "8.6"}, {"title": "The Dark Knight", "rating": "9.0"},{"title": "Batman Begins", "rating": "8.3"}, {"title": "Avatar", "rating": "7.9"}]`

View File

@@ -66,7 +66,7 @@ assert(
应该使用`reduce`方法。
```js
assert(code.match(/\.reduce/g));
assert(__helpers.removeJSComments(code).match(/\.reduce/g));
```
`getRating(watchList)` 应该等于 8.675。
@@ -78,7 +78,7 @@ assert(getRating(watchList) === 8.675);
不能使用 `for` 循环。
```js
assert(!code.match(/for\s*?\([\s\S]*?\)/g));
assert(!__helpers.removeJSComments(code).match(/for\s*?\([\s\S]*?\)/g));
```
在修改 `watchList` 对象后应该返回正确的输出。

View File

@@ -31,7 +31,7 @@ numbers.some(function(currentValue) {
应该使用 `some` 方法。
```js
assert(code.match(/\.some/g));
assert(__helpers.removeJSComments(code).match(/\.some/g));
```
`checkPositive([1, 2, 3, -4, 5])` 应返回 `true`