chore(i18n,curriculum): processed translations (#42162)

This commit is contained in:
camperbot
2021-05-17 19:00:24 +05:30
committed by GitHub
parent be2bb093d4
commit 3d91eae3e5
6 changed files with 10 additions and 10 deletions

View File

@ -11,9 +11,9 @@ dashedName: generate-random-fractions-with-javascript
隨機數非常適合用來創建隨機行爲。
在 JavaScript 中,可以用 `Math.random()` 生成一個在`0`(包括 0`1`(不包括 1之間的隨機小數 因此 `Math.random()` 可能返回 `0`,但絕不會返回 `1`
在 JavaScript 中,可以用 `Math.random()` 生成一個在`0`(包括 0`1`(不包括 1之間的隨機小數 因此 `Math.random()` 可能返回 `0`,但絕不會返回 `1`
**提示:** [使用賦值運算符存儲值](/learn/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator)這一節講過,所有函數調用將在 `return` 執行之前結束,因此我們可以 `return`(返回)`Math.random()` 函數的值。
**提示:**[使用賦值運算符存儲值](/learn/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator)這一節講過,所有函數調用將在 `return` 執行之前結束,因此我們可以 `return`(返回)`Math.random()` 函數的值。
# --instructions--

View File

@ -58,10 +58,10 @@ assert(typeof Animal.prototype.bark == 'undefined');
assert(typeof Dog.prototype.eat == 'function');
```
`Dog` 應該有一個 `bark()` 方法作爲 `own` 屬性
`Dog` 原型應該有一個 `bark()` 方法。
```js
assert(Dog.prototype.hasOwnProperty('bark'));
assert('bark' in Dog.prototype);
```
`beagle` 應該是 `Animal` 的一個 `instanceof`

View File

@ -19,7 +19,7 @@ d3.select("body").selectAll("div")
.append("div")
```
操作 `rect` 元素和 `divs` 有一些不同。 `rects` 必須添加在 `svg` 元素內,而不能直接添加在 `body` 內。 同時,你需要告訴 D3 將 `rect` 放在 `svg` 區域的哪個位置。 條形的放置會在下一個挑戰中講到。
操作 `rect` 元素和 `div` 元素有一些不同。 `rect` 元素必須添加在 `svg` 元素內,而不能直接添加在 `body` 內。 同時,你需要告訴 D3 將 `rect` 放在 `svg` 區域的哪個位置。 條形的放置會在下一個挑戰中講到。
# --instructions--

View File

@ -11,9 +11,9 @@ dashedName: generate-random-fractions-with-javascript
随机数非常适合用来创建随机行为。
在 JavaScript 中,可以用 `Math.random()` 生成一个在`0`(包括 0`1`(不包括 1之间的随机小数 因此 `Math.random()` 可能返回 `0`,但绝不会返回 `1`
在 JavaScript 中,可以用 `Math.random()` 生成一个在`0`(包括 0`1`(不包括 1之间的随机小数 因此 `Math.random()` 可能返回 `0`,但绝不会返回 `1`
**提示:** [使用赋值运算符存储值](/learn/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator)这一节讲过,所有函数调用将在 `return` 执行之前结束,因此我们可以 `return`(返回)`Math.random()` 函数的值。
**提示:**[使用赋值运算符存储值](/learn/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator)这一节讲过,所有函数调用将在 `return` 执行之前结束,因此我们可以 `return`(返回)`Math.random()` 函数的值。
# --instructions--

View File

@ -58,10 +58,10 @@ assert(typeof Animal.prototype.bark == 'undefined');
assert(typeof Dog.prototype.eat == 'function');
```
`Dog` 应该有一个 `bark()` 方法作为 `own` 属性
`Dog` 原型应该有一个 `bark()` 方法。
```js
assert(Dog.prototype.hasOwnProperty('bark'));
assert('bark' in Dog.prototype);
```
`beagle` 应该是 `Animal` 的一个 `instanceof`

View File

@ -19,7 +19,7 @@ d3.select("body").selectAll("div")
.append("div")
```
操作 `rect` 元素和 `divs` 有一些不同。 `rects` 必须添加在 `svg` 元素内,而不能直接添加在 `body` 内。 同时,你需要告诉 D3 将 `rect` 放在 `svg` 区域的哪个位置。 条形的放置会在下一个挑战中讲到。
操作 `rect` 元素和 `div` 元素有一些不同。 `rect` 元素必须添加在 `svg` 元素内,而不能直接添加在 `body` 内。 同时,你需要告诉 D3 将 `rect` 放在 `svg` 区域的哪个位置。 条形的放置会在下一个挑战中讲到。
# --instructions--