/* function for setIetm to local storage */ function set(){ var sendJson = JSON.stringify(allwish); localStorage.setItem("wishKay",sendJson); }