Web

Local Storage

Definition

A web browser API for storing key-value pairs persistently (survives browser restarts). Limited to ~5MB per origin, stores strings only. Use `JSON.stringify`/`JSON.parse` for objects. Session Storage is similar but clears when the tab closes.

Code Example

Web

Related Terms