javascript how to setup localstorage code example
Example 1: how to add variable to local storage in javascript
localStorage.setItem('key', 'value')
Example 2: copy localstorage javascript
var data = JSON.parse(/*previously copied stringified JSON from clipboard*/);
Object.keys(data).forEach(function (k) {
localStorage.setItem(k, data[k]);
});