Skip to content

Commit 15c0126

Browse files
authored
fix typo
1 parent 64e621e commit 15c0126

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • 1-js/08-prototypes/02-function-prototype/1-changing-prototype

1-js/08-prototypes/02-function-prototype/1-changing-prototype/task.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ alert( rabbit.eats ); // true
2121

2222

2323
1. 我们增加了一个字符串(强调)。现在 `alert` 会显示什么?
24+
2425
```js
2526
function Rabbit() {}
2627
Rabbit.prototype = {
@@ -37,6 +38,7 @@ alert( rabbit.eats ); // true
3738
```
3839

3940
2. ……如果代码是这样的(修改了一行)?
41+
4042
```js
4143
function Rabbit() {}
4244
Rabbit.prototype = {
@@ -53,6 +55,7 @@ alert( rabbit.eats ); // true
5355
```
5456

5557
3. 像这样呢(修改了一行)?
58+
5659
```js
5760
function Rabbit() {}
5861
Rabbit.prototype = {
@@ -69,6 +72,7 @@ alert( rabbit.eats ); // true
6972
```
7073

7174
4. 最后一种变体:
75+
7276
```js
7377
function Rabbit() {}
7478
Rabbit.prototype = {

0 commit comments

Comments
 (0)