Modules, Testing, and Application Structure
Separate responsibilities, export narrow interfaces, and test behavior at useful boundaries.
Lesson introduction
ES modules make dependencies explicit. Keep pure domain logic separate from browser and network adapters, then test the domain with fast examples and the integration boundaries with realistic inputs. A test should make the expected behavior obvious.
Where this fits
This lesson builds one part of the path from language fundamentals to complete browser applications.
What you will build
Name the JavaScript feature that explicitly shares a binding with another file.
You will first study the underlying rule, then trace worked code, repair a mistake, and create an independent solution.