Skip to content

Commit 9079d09

Browse files
authored
Merge pull request #196 from yoga1234/master
Translate
2 parents dea8d86 + e4df07c commit 9079d09

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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+
Panggilan pertama memiliki `this == rabbit`, yang lainnya memiliki `this` sama dengan `Rabbit.prototype`, karena itu sebenarnya adalah objek sebelum titiknya.
33

4-
So only the first call shows `Rabbit`, other ones show `undefined`:
4+
Jadi hanya panggilan pertama yang menampilkan `Rabbit`, lainnya menampilkan `undefined`:
55

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
importance: 5
1+
nilai: 5
22

33
---
44

5-
# The difference between calls
5+
# Perbedaan diantara pemanggilan
66

7-
Let's create a new `rabbit` object:
7+
Kita buat sebuah objek `rabbit` baru:
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+
Apakah panggilan-panggilan dibawah sama atau tidak?
2121

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

0 commit comments

Comments
 (0)