The “modules” directory contains a series of examples that explain how JavaScript modules are used. The subdirectories are as follows:
x as y syntax (run the example live).import * as x from 'y.js' syntax (run the example live).export { x } from 'y.js' syntax (run the example live).import().then() (run the example live).