Answers for "how to load local storage javascript"

4

get localstorage

function get(){
    var getJson = localStorage.getItem('key')
    if(getJson){
        arrayName = JSON.parse(getJson)
    }
}
Posted by: Guest on October-07-2020
42

localstorage javascript

localStorage.setItem('user_name', 'Rohit'); //store a key/value
var retrievedUsername = localStorage.getItem('user_name'); //retrieve the key
Posted by: Guest on October-23-2019

Code answers related to "how to load local storage javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language