Answers for "delete the item from the local storage using array in javascript"

8

remove array item from localStorage

// Don't use removeItem() that as the name says removes the whole item from localStorage. Just do another setItem() to overwrite the old data.
questions.splice(index, 1);
localStorage.setItem('questions',JSON.stringify(questions));
Posted by: Guest on March-10-2020
2

delete local storage javascript

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

Code answers related to "delete the item from the local storage using array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language