ES Modules (ESM) use static `import` and `export`, enabling bundler optimizations and tree-shaking.
js
export const RPC_URL = "[https://sepolia.base.org](https://sepolia.base.org)";
export function format() {}100 XP to Apprentice
import, export, and static module resolution.
AI translates the explanation and quiz text while preserving code and answer scoring.
ES Modules (ESM) use static `import` and `export`, enabling bundler optimizations and tree-shaking.
js
export const RPC_URL = "[https://sepolia.base.org](https://sepolia.base.org)";
export function format() {}1. Why are ES modules statically analyzable?
2. How many times does a module body execute?
3. Which export is easier to tree-shake?