JavaScript·Advanced·Conceptual·1 min read
Can let and var declare the same name in one scope?
Short interview answer
Conflicting lexical and var declarations can produce an early SyntaxError. Exact behavior depends on their containing scopes, so nested blocks must be analyzed precisely.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.