Skip to content

Commit 78aa8b4

Browse files
committed
Fix mbeaudru#48 - Named firstclass citizen can be exported
1 parent 1cdd6cf commit 78aa8b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,9 @@ I highly recommend to take a look at MDN resources on import/export (see externa
10451045

10461046
##### Named exports
10471047

1048-
Named exports are used to export several values from a module. You can only name-export variables (not functions or class), so if you want to name-export a function, you have to store it in a variable before.
1048+
Named exports are used to export several values from a module.
1049+
1050+
> **Note :** You can only name-export [first-class citizens](https://en.wikipedia.org/wiki/First-class_citizen) that have a name.
10491051
10501052
```js
10511053
// mathConstants.js

0 commit comments

Comments
 (0)