Answers for "remove key localstorage"

0

js local storage delete key

localStorage.removeItem(key);
Posted by: Guest on February-25-2021
4

javascript get local storage

var Item = localStorage.getItem('youritem');
Posted by: Guest on February-22-2020
0

how to setItem and getItem in javascript in localStorage

function set(){
    var sendJSON = JSON.stringify(allMovie);
    localStorage.setItem('allMovie',sendJSON)
}

function get(){
    var getJSON = localStorage.getItem('allMovie');
    if (getJSON){
        allMovie = JSON.parse(getJSON)
    }

}
Posted by: Guest on August-10-2020
-1

get localstorage value

localStorage.getItem('bgcolor');
Posted by: Guest on March-10-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language