Hi there! I'm trying to create a todolist using js. • I have added the data to local storage • Get the data from local storage and show it on the ui • Now in trying to create a function to delete the data from the ui and from the local storage but it deletes the whole data from local storage
function deleteItem(para,deletebtn){ para.remove(); deletebtn.remove(); localStorage.removeItem("userData"); }
function deleteItem(para,deletebtn){ para.remove(); deletebtn.remove(); localStorage.removeItem("userData"); }
• I'd appreciate if you help me to resolve this issue and other tips