Skip to content
JavaScript·Advanced·Conceptual·1 min read

How do default and named exports differ architecturally?

Short interview answer

A default export offers one distinguished value and can be renamed freely by importers. Named exports make API names consistent and support explicit static discovery.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to JavaScript modules

Related questions