Skip to content

Commit 26f6a5f

Browse files
committed
Question 141
1 parent 8798f41 commit 26f6a5f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nl-NL/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4580,7 +4580,7 @@ Als we `yield`, `return yield`, of `return` hadden geschreven zou de gehele gene
45804580
45814581
---
45824582
4583-
###### 142. Wat is de uitkomst?
4583+
###### 141. Wat is de uitkomst?
45844584
45854585
```javascript
45864586
const person = {
@@ -4610,15 +4610,15 @@ console.log(person.hobbies);
46104610
46114611
#### Antwoord: C
46124612
4613-
The `addHobby` function receives two arguments, `hobby` en `hobbies` with the default value of the `hobbies` array on the `person` object.
4613+
De functie `addHobby` ontvangt twee arguemnten, `hobby` en `hobbies` met als standaard waarde de waarde van de array `hobbies` op het object `person`.
46144614
4615-
First, we invoke the `addHobby` function, en pass `"running"` as the value for `hobby` en an empty array as the value for `hobbies`. Since we pass an empty array as the value for `y`, `"running"` gets added to this empty array.
4615+
Eerst roepen we de functie `addHobby` aan en geven `"running"` mee als de waarde voor `hobby`, en een lege array als de waarde voor `hobbies`. Omdat we een lege array meegeven als de waarde voor `y` wordt `"running"` toegevoegd aan deze lege array.
46164616
4617-
Then, we invoke the `addHobby` function, en pass `"dancing"` as the value for `hobby`. We didn't pass a value for `hobbies`, so it gets the default value, the `hobbies` property on the `person` object. We push the hobby `dancing` to the `person.hobbies` array.
4617+
Daarna roepen we de functie `addHobby` aan en geven `"dancing"` mee als de waarde voor `hobby`. We gaven geen waarde mee voor `hobbies` dus krijgt het de standaard waarde, de propertie `hobbies` op het object `person`. We pushen daar de hobby `dancing` naar de array `person.hobbies`.
46184618
4619-
Last, we invoke the `addHobby` function, en pass `"bdaking"` as the value for `hobby`, en the `person.hobbies` array as the value for `hobbies`. We push the hobby `baking` to the `person.hobbies` array.
4619+
Als laatste roepen we de functie `addHobby` aan en geven `"baking"` als de waarde voor `hobby` en de array `person.hobbies` als de waarde voor `hobbies`. We pushen de hobby `baking` naar de array `person.hobbies`.
46204620
4621-
After pushing `dancing` en `baking`, the value of `person.hobbies` is `["coding", "dancing", "baking"]`
4621+
Na het pushen van `dancing` en `baking` is de waarde van `person.hobbies` gelijk aan `["coding", "dancing", "baking"]`.
46224622
46234623
</p>
46244624
</details>

0 commit comments

Comments
 (0)