Simple Persistence with the Web Storage API
Load and store persistent string data with the Web Storage API, using local storage or session storage. Data is stored as key-value pairs.
Check if local storage is available for use in the current browser.
Use local storage to remember the color selected with a color picker.
Stringify an object and persist the resulting JSON in local storage.
Use JSON replacer and reviver functions to customize object serialization.
Listen for local storage changes from other tabs on the same page.
Inspect the local storage area to generate an array of known keys.