Local Storage
Noun · Development
Definitions
A browser API for storing key-value string data (up to ~5-10MB) that persists across sessions. Synchronous and blocks the main thread, so avoid storing large data. Not suitable for sensitive data (accessible to any script on the domain). Alternative: IndexedDB for larger/structured data, sessionStorage for session-scoped data.
In plain English: A simple way for websites to save small amounts of data in your browser that sticks around even after you close the tab.
Example: "Store the user's theme preference in localStorage — it persists across tabs and browser restarts."