Skip to content

Commit 638dbf1

Browse files
committed
Translate Task 2
1 parent a762122 commit 638dbf1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
The first call has `this == rabbit`, the other ones have `this` equal to `Rabbit.prototype`, because it's actually the object before the dot.
2+
В первом вызове `this == rabbit`, во всех остальных `this` равен `Rabbit.prototype`, потому что `this` это в действительности это объект до точки.
33

4-
So only the first call shows `Rabbit`, other ones show `undefined`:
4+
Так что только первый вызов выведет `Rabbit`, а остальные - `undefined`:
55

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ importance: 5
22

33
---
44

5-
# The difference between calls
5+
# Разница между вызовами
66

7-
Let's create a new `rabbit` object:
7+
Давайте создадим новый объект `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-
These calls do the same thing or not?
20+
Все эти вызовы делают одно и тоже или нет?
2121

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

0 commit comments

Comments
 (0)