# Local Storage

Browser key-value storage that remains after the page and browser are closed.

## What is **Local Storage** in JavaScript?

**Local Storage** — Browser key-value storage that remains after the page and browser are closed.

```javascript
localStorage.setItem("theme", "dark");
const theme = localStorage.getItem("theme");
```

Level: Freelancer · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/freelancer)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/local-storage
