Skip to content

Commit 8871521

Browse files
committed
minor fixes
1 parent df45aed commit 8871521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/13-modules/01-modules-intro/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ import `./alert.js`; // Module is evaluated!
146146
import `./alert.js`; // (shows nothing)
147147
```
148148

149-
Top-level module code should be used for initialization, creation of module-specific internal data structures. If we want to call something multiple times - we need to export it.
149+
There's a rule: top-level module code should be used for initialization, creation of module-specific internal data structures. If we need to make something callable multiple times - we should export it as a function, like we did with `sayHi` above.
150150

151151
Now, a more advanced example.
152152

0 commit comments

Comments
 (0)