Local Storage
Local Storage exists even after the browser is closed, and available across browser sessions.
Stores until explicitly removed by the user.
Data in Local Storage is shared across all tabs and windows of the same domain.
API
// Storing data in localStorage
localStorage.setItem('key', 'value');
// Retrieving data from localStorage
const value = localStorage.getItem('key');
// Removing data from localStorage
localStorage.removeItem('key');