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

This commit is contained in:
camperbot
2021-09-18 11:22:53 -07:00
committed by GitHub
parent 81d48b26ad
commit 15be1fe6bb
164 changed files with 1081 additions and 372 deletions

View File

@ -10,7 +10,7 @@ dashedName: prevent-object-mutation
通過之前的挑戰可以看出,`const` 聲明並不會真的保護數據不被改變。 爲了確保數據不被改變JavaScript 提供了一個函數 `Object.freeze`
當一個對象被凍結的時候,你不能再對它的屬性再進行增、刪、改的操作。 任何試圖改變對象的操作都會被阻止,卻不會報錯
任何更改對象的嘗試都將被拒絕,如果腳本在嚴格模式下運行,將拋出錯誤
```js
let obj = {
@ -23,7 +23,7 @@ obj.newProp = "Test";
console.log(obj);
```
`obj.review``obj.newProp` 賦值將導致錯誤,控制檯將顯示值 `{ name: "FreeCodeCamp", review: "Awesome" }`
`obj.review``obj.newProp` 賦值將導致錯誤,因爲我們的編輯器默認在嚴格模式下運行,控制檯將顯示值 `{ name: "FreeCodeCamp", review: "Awesome" }`
# --instructions--

View File

@ -38,7 +38,7 @@ JavaScript 的默認排序方法是 Unicode 值順序排序,有時可能會得
# --instructions--
`alphabeticalOrder` 函數中使用 `sort` 方法對 `arr` 中的元素按照字母順序排列。
`alphabeticalOrder` 函數中使用 `sort` 方法對 `arr` 中的元素按照字母順序排列。 該函數應返回一個排序的數組。
# --hints--
@ -83,7 +83,7 @@ assert(
function alphabeticalOrder(arr) {
// Only change code below this line
return arr
// Only change code above this line
}
alphabeticalOrder(["a", "d", "c", "a", "z", "g"]);