# Local Storage

*noun*

say it: **“LOH-kul STOR-ij”** **/ˈloʊkəl ˈstɔːrɪdʒ/**

Browser storage of keys and values that stays after the page and the 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");
```

## In a sentence

- “We keep the token in **local storage**, so a refresh doesn't sign the user out.”

Level: Freelancer · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=4)

Updated: November 9, 2026

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