how to get all values in localstorage code example
Example 1: get localstorage
function get(){
var getJson = localStorage.getItem('key')
if(getJson){
arrayName = JSON.parse(getJson)
}
}
Example 2: localstorage read all key
for (var key in localStorage){
console.log(key)
}