how to get item from local storage javascript code example
Example 1: get localstorage
function get(){
var getJson = localStorage.getItem('key')
if(getJson){
arrayName = JSON.parse(getJson)
}
}
Example 2: javascript get local storage
var Item = localStorage.getItem('youritem');
Example 3: how to get variable in local storage in javascript
localStorage.getItem('id');