localstorage set get 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());
Example 3: my local storage
/* function for setIetm to local storage */
function set(){
var sendJson = JSON.stringify(allwish);
localStorage.setItem("wishKay",sendJson);
}