1 |
|
2 |
|
3 | let x = 1;
|
4 | (function() {
|
5 | let x = 2;
|
6 |
|
7 | for ( let y = 3; y<10; y++ ) {
|
8 | console.log(y);
|
9 | }
|
10 |
|
11 | if (x == 10) {
|
12 | console.log(a);
|
13 | let a = 20;
|
14 | console.log(a);
|
15 | }
|
16 |
|
17 | console.log(y);
|
18 | }());
|
19 |
|
20 | function test() {
|
21 | let a = 1;
|
22 | let b = 2;
|
23 | while (a > b) {
|
24 | var c = a + b;
|
25 | }
|
26 | }
|