Answers for "how to clear localstorage in javascript"

6

js remove all local storage

window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item
Posted by: Guest on January-12-2020
5

javascript clear localstorage

window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item
Posted by: Guest on July-31-2019
12

javascript localStorage clear items

localStorage.clear();//this clears the localStorage completely
Posted by: Guest on April-01-2020
0

localstorage clear item

localStorage.removeItem(key);
Posted by: Guest on April-27-2020
-1

get localstorage value

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

Code answers related to "how to clear localstorage in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language