set item localstorege code example
Example 1: set localstorage
function set(){
var sendJson = JSON.stringify(arrayName);
localStorage.setItem('key',sendJson)
}
Example 2: set localstorage value
localStorage.setItem("mytime", Date.now());