Answers for "window.localstorage in javascript"

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
3

localstorage javascript

localStorage.setItem(key, val);
var val = localStorage.getItem(key);
localStorage.removeItem(key);
localStorage.clear();
Posted by: Guest on November-18-2020
0

my local storage

/* function for setIetm to local storage */

function set(){
    var sendJson = JSON.stringify(allwish);
    localStorage.setItem("wishKay",sendJson);
}
Posted by: Guest on October-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language