This repository contains examples of JavaScript usage.
The “promises-test” directory contains a JS promises test example, for learning purposes. Run the example live.
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).await
keyword within a module (run the example live).