Week 10
Quiz28m

Quiz 28m: The JavaScript Module System

Modules can change during runtime.
Modules have versions.
Modules have no local 'this'.
Loading modules from HTML via the <script> element requires the type='module' attribute.
Modules provide a namespace.
Modules are objects.
The 'import' directive can import 'from' variables that contain a String value.
Modules can only be loaded asynchronously.
Module exports are always explicit.
Modules export variables as 'read only'.
The 'import(origin)' function returns a promise for asynchronous use with the 'then(module => ...)' callback.
Modules have access to the 'Global' object.
Module loading is subject to the same origin policy (SOP).
Modules enforce strict mode.
The 'import' and 'export' directives only work in asynchronous modules.
With extra tools, modules can be bundled into single .js files.