Thanks for that explanation Logan, that was very helpful! I understand correctly, function scopes are instantiated only right before a function will run, while the module scopes are all instantiated first before any modules are evaluated, not right before the module code will be evaluated. That's where my assumption was wrong, as I was thinking that the hoisting would happen right before module evaluation (similar to functions), and therefore it would have been impossible for module B to access initC in your example, but now I get it. Thanks a ton!
*/#!/*JoePea
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

