Answers for "delete item local storage"

7

remove localstorage

localStorage.removeItem("key");
Posted by: Guest on October-18-2020
4

get localstorage

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

localstorage remove item

localStorage.removeItem("mytime");
Posted by: Guest on May-29-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language