setItem localstorage js code example
Example: localstorage js
// Set
localStorage.setItem('monChat', 'Tom');
// Get
localStorage.getItem('myCat');
// Remove
localStorage.removeItem('myCat');
// Set
localStorage.setItem('monChat', 'Tom');
// Get
localStorage.getItem('myCat');
// Remove
localStorage.removeItem('myCat');