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`