Skip to content

Commit

Permalink
Fix mbeaudru#48 - Named firstclass citizen can be exported
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeaudru committed Oct 1, 2017
1 parent 1cdd6cf commit 78aa8b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,9 @@ I highly recommend to take a look at MDN resources on import/export (see externa

##### Named exports

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.
Named exports are used to export several values from a module.

> **Note :** You can only name-export [first-class citizens](https://en.wikipedia.org/wiki/First-class_citizen) that have a name.
```js
// mathConstants.js
Expand Down

0 comments on commit 78aa8b4

Please sign in to comment.