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

How are browser module URLs resolved?

Short interview answer

Browsers resolve relative or absolute URL-like specifiers directly; bare specifiers require an import map or tooling. Each resolved URL identifies a module resource.

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