how to setitem in localstorage jquery code example
Example 1: javascript set localstorage
// SET
localStorage.setItem('myCat', 'Link');
// GET
let aValue = localStorage.getItem('myCat');
Example 2: localstorage setitem
function populateStorage() {
localStorage.setItem('bgcolor', 'red');
localStorage.setItem('font', 'Helvetica');
localStorage.setItem('image', 'myCat.png');
}