ES6: ?

ES6 Module Test Page

Read my Blog article about this.

How to use ES6 modules in an HTML Page:

Example Sources

module-example
es6-modules.html (this page!)
es6-modules.js
modules
io
math

Tests

The two buttons below call the function foobar() in two different ways, like described above. This function is implemented in es6-modules.js. This module imports all other modules. For seeing the source of this HTML page es6-modules.html, click right mouse button and select menu item "View Page Source".


Success Messages

Error Messages

Console Log



ɔ⃝  Fritz Ritzberger, 2017-12-29