move generators
This commit is contained in:
parent
890b57b75b
commit
5bca8a5ee2
37 changed files with 2 additions and 0 deletions
1
1-js/13-modules/01-modules-intro/scopes.view/hello.js
Normal file
1
1-js/13-modules/01-modules-intro/scopes.view/hello.js
Normal file
|
@ -0,0 +1 @@
|
|||
alert(user); // no such variable (each module has independent variables)
|
3
1-js/13-modules/01-modules-intro/scopes.view/index.html
Normal file
3
1-js/13-modules/01-modules-intro/scopes.view/index.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<!doctype html>
|
||||
<script type="module" src="user.js"></script>
|
||||
<script type="module" src="hello.js"></script>
|
1
1-js/13-modules/01-modules-intro/scopes.view/user.js
Normal file
1
1-js/13-modules/01-modules-intro/scopes.view/user.js
Normal file
|
@ -0,0 +1 @@
|
|||
let user = "John";
|
Loading…
Add table
Add a link
Reference in a new issue