storing in browser local storage code example
Example 1: localstorage
localStorage.setItem('myCat', 'Tom');
Example 2: localstorage
localStorage.removeItem('myCat');
localStorage.setItem('myCat', 'Tom');
localStorage.removeItem('myCat');