Answers for "Which method is used to remove an item from local storage"

7

remove localstorage

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

localstorage remove item

localStorage.setItem('image', 'myCat.png');
...
localStorage.removeItem('image');
Posted by: Guest on July-08-2021
0

remove localstorage

localStorage.removeItem(keyname)
Posted by: Guest on July-30-2021

Code answers related to "Which method is used to remove an item from local storage"

Code answers related to "Javascript"

Browse Popular Code Answers by Language