ES6 Module Test

This example uses two modules, pageScript.js and lengthConverterModule.js, and has an inline script on this page. The inline script attaches the button.click event handler to the doSampleConversion() function uses the LengthConverter.Convert() method from lengthConverterModule.js.

Because of module security restrictions, this example must be hosted onoliner in a test web server. It will not run successfully from the local file system.