Skip to content

Commit b0fb3e6

Browse files
committed
Question 139
1 parent d6122ef commit b0fb3e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nl-NL/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4498,7 +4498,7 @@ Daarna roepen we de functie `myFunc(3)` aan het geven `3` meet als de waarde voo
44984498
44994499
---
45004500
4501-
###### 140. Wat is de uitkomst?
4501+
###### 139. Wat is de uitkomst?
45024502
45034503
```javascript
45044504
class Counter {
@@ -4529,7 +4529,7 @@ console.log(counter.#number)
45294529
45304530
#### Antwoord: D
45314531
4532-
In ES2020, we can add private variables in classes by using the `#`. We cannot access these variables outside of the class. When we try to log `counter.#number`, a SyntaxError gets thrown: we cannot acccess it outside the `Counter` class!
4532+
In ES2020 kunnen we private variabelen toevoegen aan classes door gebruik te maken van `#`. We kunnen deze variabelen niet benaderen van buitenaf. Wanneer we `counter.#number` proberen te loggen wordt er een SuntaxError gegooid: we cannot acccess it outside the `Counter` class!
45334533
45344534
</p>
45354535
</details>

0 commit comments

Comments
 (0)