Skip to content

Commit 053cc05

Browse files
committed
minor fixes
1 parent 4343545 commit 053cc05

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ That's exactly because the module is executed only once. Exports are generated,
186186

187187
**Such behavior is actually very convenient, because it allows us to *configure* modules.**
188188

189-
In other words, we can create variables with configuration and export them, so that the outer code can modify them.
189+
In other words, a module can provide a generic functionality that needs a setup. E.g. authentication needs credentials. Then we export a configuration object expecting the outer code to assign to it.
190190

191191
For instance, the `admin.js` module may provide certain functionality (e.g. authentication), but expect the credentials to come into the `config` object from outside.
192192

0 commit comments

Comments
 (0)