1// Don't use removeItem() that as the name says removes the whole item from localStorage. Just do another setItem() to overwrite the old data.
2questions.splice(index, 1);
3localStorage.setItem('questions',JSON.stringify(questions));
1localStorage.setItem('image', 'myCat.png');
2...
3localStorage.removeItem('image');