Skip to content

Commit 3ede4a5

Browse files
committed
Question 127
1 parent edc18c1 commit 3ede4a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nl-NL/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4090,7 +4090,7 @@ console.log(spookyItems);
40904090

40914091
#### Antwoord: B
40924092

4093-
By destructuring objects, we can unpack values from the right-hand object, en assign the unpacked value to the value of the same property name on the left-hand object. In this case, we're assigning the value "💀" to `spookyItems[3]`. This means that we're modifying the `spookyItems` array, we're adding the "💀" to it. When logging `spookyItems`, `["👻", "🎃", "🕸", "💀"]` gets logged.
4093+
Door objecten te destructureren (_destructuring_) kunnen we de values van een object uitpakken en een uitgepakte waarde toewijzen aan de key van dezelfde property. In dit geval wijzen we de waarde "💀" toe aan `spookyItems[3]`. Dit betekent dat we de array `spookyItems` aanpassen, we voegen namelijk "💀" toe. Wanneer we de array `spookyItems` loggen wordt `["👻", "🎃", "🕸", "💀"]` gelogd.
40944094

40954095
</p>
40964096
</details>

0 commit comments

Comments
 (0)