Module 11 · Modules: import, export and How Files Find Each Other
The Interview and Contest Pack: Five Real Differences, Cycle Puzzles and Tree Shaking
ProReading
Almost every JavaScript interview that touches tooling asks one question: "What is the difference between ES modules and CommonJS?" A weak answer lists syntax. A strong answer names behaviour, and can show it. This lesson gives you the strong answer, the cycle puzzles that follow it, and the patterns behind this module's judged problems.
Checking what this lesson needs for you…
What is inside The Interview and Contest Pack: Five Real Differences, Cycle Puzzles and Tree Shaking
- Pattern 1: the five real differences
- Pattern 2: circular puzzles
- Pattern 3: tree shaking, and what stops it
- Pattern 4: walking a deep graph without recursion
- Six interview questions