Skip to content

Commit fd68308

Browse files
authored
Merge pull request lydiahallie#486 from danangekal/danangekal-dev
Add translation id-ID
2 parents 2fa54da + 7587741 commit fd68308

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

id-ID/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ Kita tahu bahwa `this.firstName` setara dengan `"Sarah"` dan `this.lastName` sam
428428

429429
---
430430

431-
###### 13. What are the three phases of event propagation?
431+
###### 13. Apa tiga fase dari event propagation?
432432

433433
- A: Target > Capturing > Bubbling
434434
- B: Bubbling > Target > Capturing
@@ -440,7 +440,7 @@ Kita tahu bahwa `this.firstName` setara dengan `"Sarah"` dan `this.lastName` sam
440440

441441
#### Jawaban: D
442442

443-
During the **capturing** phase, the event goes through the ancestor elements down to the target element. It then reaches the **target** element, and **bubbling** begins.
443+
Selama fase **capturing**, event melewati elemen ancestor hingga ke elemen target. Kemudian mencapai element **target**, dan **bubbling** dimulai.
444444

445445
<img src="https://i.imgur.com/N18oRgd.png" width="200">
446446

@@ -459,7 +459,7 @@ During the **capturing** phase, the event goes through the ancestor elements dow
459459

460460
#### Jawaban: B
461461

462-
All objects have prototypes, except for the **base object**. The base object is the object created by the user, or an object that is created using the `new` keyword. The base object has access to some methods and properties, such as `.toString`. This is the reason why you can use built-in JavaScript methods! All of such methods are available on the prototype. Although JavaScript can't find it directly on your object, it goes down the prototype chain and finds it there, which makes it accessible for you.
462+
Semua objek memiliki prototypes, kecuali **objek dasar**. Objek dasar adalah objek yang dibuat oleh pengguna, atau objek yang dibuat dengan menggunakan kata kunci `baru`. Objek dasar memiliki akses ke beberapa metode dan properti, seperti `.toString`. Inilah alasan mengapa Anda dapat menggunakan metode JavaScript bawaan! Semua metode tersebut tersedia di prototipe. Meskipun JavaScript tidak dapat menemukannya secara langsung di objek Anda, JavaScript berada di rantai prototipe dan menemukannya di sana, yang membuatnya dapat diakses untuk Anda.
463463

464464
</p>
465465
</details>
@@ -514,17 +514,17 @@ console.log(number);
514514

515515
#### Jawaban: C
516516

517-
The **postfix** unary operator `++`:
517+
**Akhiran** operator unary `++`:
518518

519-
1. Returns the value (this returns `0`)
520-
2. Increments the value (number is now `1`)
519+
1. Mengembalikan nilai (ini mengembalikan `0`)
520+
2. Menambahkan nilai (angkanya sekarang `1`)
521521

522-
The **prefix** unary operator `++`:
522+
**Awalan** operator unary `++`:
523523

524-
1. Increments the value (number is now `2`)
525-
2. Returns the value (this returns `2`)
524+
1. Menambah nilai (angkanya sekarang `2`)
525+
2. Mengembalikan nilai (ini mengembalikan `2`)
526526

527-
This returns `0 2 2`.
527+
Ini mengembalikan `0 2 2`.
528528

529529
</p>
530530
</details>
@@ -555,7 +555,7 @@ getPersonInfo`${person} is ${age} years old`;
555555

556556
#### Jawaban: B
557557

558-
If you use tagged template literals, the value of the first argument is always an array of the string values. The remaining arguments get the values of the passed expressions!
558+
Jika Anda menggunakan literal template yang diberi tag, nilai argumen pertama selalu berupa array bernilai string. Argumen yang tersisa mendapatkan nilai dari ekspresi yang diteruskan!
559559

560560
</p>
561561
</details>
@@ -587,11 +587,11 @@ checkAge({ age: 18 });
587587

588588
#### Jawaban: C
589589

590-
When testing equality, primitives are compared by their _value_, while objects are compared by their _reference_. JavaScript checks if the objects have a reference to the same location in memory.
590+
Saat menguji persamaan, primitif dibandingkan dengan nilainya, sedangkan objek dibandingkan dengan referensinya. JavaScript memeriksa apakah objek memiliki referensi ke lokasi yang sama di memori.
591591

592-
The two objects that we are comparing don't have that: the object we passed as a parameter refers to a different location in memory than the object we used in order to check equality.
592+
Dua objek yang kita bandingkan tidak memiliki itu: objek yang kita lewati sebagai parameter merujuk ke lokasi yang berbeda dalam memori dari objek yang kita gunakan untuk memeriksa persamaan.
593593

594-
This is why both `{ age: 18 } === { age: 18 }` and `{ age: 18 } == { age: 18 }` return `false`.
594+
Inilah mengapa `{age: 18} === {age: 18}` dan `{age: 18} == {age: 18}` mengembalikan nilai `false`.
595595

596596
</p>
597597
</details>
@@ -618,7 +618,7 @@ getAge(21);
618618

619619
#### Jawaban: C
620620

621-
The rest parameter (`...args`.) lets us "collect" all remaining arguments into an array. An array is an object, so `typeof args` returns `"object"`
621+
Parameter sisanya (`... args`.) Memungkinkan kita "mengumpulkan" semua argumen yang tersisa ke dalam sebuah array. Array adalah sebuah objek, jadi `typeof args` mengembalikan "objek"
622622

623623
</p>
624624
</details>
@@ -647,7 +647,7 @@ getAge();
647647

648648
#### Jawaban: C
649649

650-
With `"use strict"`, you can make sure that you don't accidentally declare global variables. We never declared the variable `age`, and since we use `"use strict"`, it will throw a reference error. If we didn't use `"use strict"`, it would have worked, since the property `age` would have gotten added to the global object.
650+
Dengan `" use strict "`, Anda dapat memastikan bahwa Anda tidak mendeklarasikan variabel global secara tidak sengaja. Kita tidak pernah mendeklarasikan variabel `age`, dan karena kita menggunakan `" use strict "`, ini akan memunculkan kesalahan referensi. Jika kita tidak menggunakan `" use strict "`, ini akan berhasil, karena properti `age` akan ditambahkan ke objek global.
651651

652652
</p>
653653
</details>

0 commit comments

Comments
 (0)