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

What is a namespace import?

Short interview answer

import * as ns creates a module namespace object exposing the module's exported bindings as read-only properties with live values.

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