javascript - Save array in local storage -
javascript - Save array in local storage -
this total code
i need save array visited local storage. then, need if statement check if array has been stored. if has,
return;
ending code , making button not functional. this;
if (store.length == 3) { document.getelementbyid('btn').classname = 'maxques'; alert('you have completed category'); console.log(store); return; }
i somehow need store array. tried json stringify followed json parse either don't work or i'm doing them wrong. ideas?
at risk of repeating @tom hart, utilize combination of functions localstorage.setitem , localstorage.getitem. respectively params beingness key, value , key.
javascript arrays json local-storage
Comments
Post a Comment