@@ -296,7 +296,7 @@ let counter2 = makeCounter();
296296alert ( counter1 () ); // 0
297297alert ( counter1 () ); // 1
298298
299- alert ( counter2 () ); // 0 (independant )
299+ alert ( counter2 () ); // 0 (independent )
300300```
301301
302302
@@ -423,7 +423,7 @@ For instance, after `if` finishes, the `alert` below won't see the `user`, hence
423423For a loop, every run has a separate Lexical Environment. If the variable is declared in ` for ` , then it's also local to that Lexical Environment:
424424
425425``` js run
426- for (let i = 0 ; i < 10 ; i++ ) {
426+ for (let i = 0 ; i < 10 ; i++ ) {
427427 // Each loop has its own Lexical Environment
428428 // {i: value}
429429}
@@ -567,7 +567,7 @@ Lexical Environment objects that we've been talking about are subjects to same m
567567 return function() { alert(value); };
568568 }
569569
570- // 3 functions in array, every of them links to Lexical Environment
570+ // 3 functions in array, every one of them links to Lexical Environment
571571 // from the corresponding f() run
572572 // LE LE LE
573573 let arr = [f(), f(), f()];
641641` ` ` warn header="See ya!"
642642This feature of V8 is good to know. If you are debugging with Chrome/Opera, sooner or later you will meet it.
643643
644- That is not a bug of debugger, but a special feature of V8. Maybe it will be changed some time .
644+ That is not a bug of debugger, but a special feature of V8. Maybe it will be changed sometime .
645645You always can check for it by running examples on this page.
646646` ` `
0 commit comments