File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4334,7 +4334,7 @@ import * as sum from "./sum";
4334
4334
4335
4335
#### Antwoord: C
4336
4336
4337
- With the asterisk `*`, we import all exported values from that file, both default en named. If we had the following file :
4337
+ Met het sterretje `*` importeren we alle geëxporteerde waarden van een bestand, zowel de default als de benaamde. Als we het volgende bestand hadden :
4338
4338
4339
4339
```javascript
4340
4340
// info.js
@@ -4347,7 +4347,7 @@ import * as info from "./info";
4347
4347
console.log(info);
4348
4348
```
4349
4349
4350
- The following would get logged :
4350
+ Het volgende zou gelogd worden :
4351
4351
4352
4352
```javascript
4353
4353
{
@@ -4357,13 +4357,13 @@ The following would get logged:
4357
4357
}
4358
4358
```
4359
4359
4360
- For the `sum` example, it means that the imported value `sum` looks like this :
4360
+ Voor het `sum` voorbeeld betekent dit dat de geïmporteerde waarde `sum` eruit ziet als :
4361
4361
4362
4362
```javascript
4363
4363
{ default: function sum(x) { return x + x } }
4364
4364
```
4365
4365
4366
- We can invoke this function, by calling `sum.default`
4366
+ We kunnen deze functie aanvoeren door `sum.default` aan te roepen.
4367
4367
4368
4368
</p>
4369
4369
</details>
You can’t perform that action at this time.
0 commit comments