minor fixes

This commit is contained in:
Ilya Kantor 2021-05-24 11:07:13 +03:00
parent ae8248bb56
commit ffa79a8692

View file

@ -81,7 +81,7 @@ Modules always work in strict mode. E.g. assigning to an undeclared variable wil
Each module has its own top-level scope. In other words, top-level variables and functions from a module are not seen in other scripts. Each module has its own top-level scope. In other words, top-level variables and functions from a module are not seen in other scripts.
In the example below, two scripts are imported, and `hello.js` tries to use `user` variable declared in `user.js`, and fails: In the example below, two scripts are imported, and `hello.js` tries to use `user` variable declared in `user.js`, and fails (you'll see the error in the console):
[codetabs src="scopes" height="140" current="index.html"] [codetabs src="scopes" height="140" current="index.html"]