Skip to content

Commit 8a0bfce

Browse files
Apply minor fixes in '1-js/08-prototypes/04-prototype-methods/3-compare-calls/'
1 parent 960f465 commit 8a0bfce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

1-js/08-prototypes/04-prototype-methods/3-compare-calls/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Le premier appel a `this==rabbit`, les autres ont `this` égal à `Rabbit.prototype`, car il s'agit en fait de l'objet avant le point.
33

4-
Ainsi, seul le premier appel indique `Rabbit`, les autres affichent` undefined`:
4+
Ainsi, seul le premier appel indique `Rabbit`, les autres affichent `undefined` :
55

66
```js run
77
function Rabbit(name) {

1-js/08-prototypes/04-prototype-methods/3-compare-calls/task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ importance: 5
44

55
# La différence entre les appels
66

7-
Créons un nouvel objet `rabbit`:
7+
Créons un nouvel objet `rabbit` :
88

99
```js
1010
function Rabbit(name) {
@@ -17,7 +17,7 @@ Rabbit.prototype.sayHi = function() {
1717
let rabbit = new Rabbit("Rabbit");
1818
```
1919

20-
Ces appels font la même chose ou pas?
20+
Ces appels font la même chose ou pas ?
2121

2222
```js
2323
rabbit.sayHi();

0 commit comments

Comments
 (0)