Skip to content

Commit a06341b

Browse files
authored
Update article.md
"`import` allows to import functionality.." -> "`import` allows the import of functionality..." "relative the current file" -> "relative to the current file,"
1 parent 9a4bc89 commit a06341b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A module is just a file. One script is one module.
2424
Modules can load each other and use special directives `export` and `import` to interchange functionality, call functions of one module from another one:
2525

2626
- `export` keyword labels variables and functions that should be accessible from outside the current module.
27-
- `import` allows to import functionality from other modules.
27+
- `import` allows the import of functionality from other modules.
2828

2929
For instance, if we have a file `sayHi.js` exporting a function:
3030

@@ -45,7 +45,7 @@ alert(sayHi); // function...
4545
sayHi('John'); // Hello, John!
4646
```
4747

48-
The `import` directive loads the module by path `./sayHi.js` relative the current file and assigns exported function `sayHi` to the corresponding variable.
48+
The `import` directive loads the module by path `./sayHi.js` relative to the current file, and assigns exported function `sayHi` to the corresponding variable.
4949

5050
Let's run the example in-browser.
5151

0 commit comments

Comments
 (0)