minor fixes
This commit is contained in:
parent
8871521f35
commit
1770074c5f
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ import `./alert.js`; // (shows nothing)
|
|||
|
||||
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.
|
||||
|
||||
Now, a more advanced example.
|
||||
Now, let's consider a deeper example.
|
||||
|
||||
Let's say, a module exports an object:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue