Browser internals·Intermediate·Conceptual·1 min read
What is the practical size limit of localStorage?
Short interview answer
It commonly caps around 5 to 10 MB per origin depending on the browser, and it stores strings only, so objects must be serialized. Exceeding the limit throws a QuotaExceededError.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.