All academies

Practice

Modules Playground

Real multi-file module examples — use the file explorer on the left of the editor to jump between files, and the JS Output tab to see what the compiler emits.

Named exports are the modern default: each module exposes several bindings by name, and imports must match those names exactly (or rename with `as`). Check the file explorer — this example spans two files.

No errors
Loading...

Console output appears here. Press Run or just type — the code compiles automatically.