setItem function jquery code example
Example 1: set localstorage value
localStorage.setItem("mytime", Date.now());
Example 2: setlocalstorage
localStorage.setItem('data', JSON.stringify(arryName));
localStorage.setItem("mytime", Date.now());
localStorage.setItem('data', JSON.stringify(arryName));