# Remembering Data with localStorage

Make a page remember things between visits with localStorage, save whole lists with JSON, start cleanly when nothing is saved yet, and know what sessionStorage and cookies are for and what must never be stored in the browser.

![Cheat sheet: Remembering Data with localStorage](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/10/4641e1edc06d4025a84444224aa81820.webp)

- Category: JavaScript
- Level: Apprentice
- Tags: Cookie, JavaScript, JSON.parse(), JSON.stringify(), Local Storage, Session Storage, web-development
- Updated: November 1, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-storage-local-and-session-cheat-sheet
