Answers for "local storage documentation"

42

local storage 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
0

localstorage

localStorage.setItem('name', 'Bob') // make/set a key/value
var username = localStorage.getItem('name') // get the key
console.log(username) // log the key
// This data will be saved even after you close the page
Posted by: Guest on November-02-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