Skip to content

Commit 298ce5d

Browse files
Fix Typo
1 parent f85f819 commit 298ce5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/2022-10/js-scoping/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ As you can see in the above example we defined a variable in `script-1.js` and w
8484

8585
### Module Scope
8686

87-
Module scope is very similar to global scope, but with one minor difference. Minor scope variables are only available within the file you define them in. This means they cannot be used in other files which is ideal when trying to mentally keep track of everything. In order to enter module scope you need to use `type="module"` on your script tags. _This does much more than just change the scope so if you are unfamiliar with ES modules you should check out my [full ES module guide](/2021-11/es6-modules)._
87+
Module scope is very similar to global scope, but with one minor difference. Module scope variables are only available within the file you define them in. This means they cannot be used in other files which is ideal when trying to mentally keep track of everything. In order to enter module scope you need to use `type="module"` on your script tags. _This does much more than just change the scope so if you are unfamiliar with ES modules you should check out my [full ES module guide](/2021-11/es6-modules)._
8888

8989
```html
9090
<script src="script-1.js" type="module"></script>

0 commit comments

Comments
 (0)