LocalStorage Lab
Medium
1
41.2% Acceptance
In this lab, you'll get familiar with using the localStorage
JavaScript Web API. LocalStorage is a simple way to store data on the client-side in a persistent manner. The stored data has no expiration time and is saved across multiple browser sessions.
Throughout this lab, you will add, modify, retrieve, and delete data from the localStorage. You'll also learn to use different methods and handle JSON data as well.
Concepts Covered:
- The
localStorage
object - Storing and retrieving items using
localStorage.setItem()
andlocalStorage.getItem()
- JSON parsing and storage with
JSON.parse()
andJSON.stringify()
- Removing the items with
localStorage.removeItem()
- Clearing the storage with
localStorage.clear()