Tell us what’s happening: Step 25 , hi!, I don’t get what’s wrong.
Inside the reset
function, set each value of titleInput
, dateInput
, descriptionInput
to an empty string.
Also, use classList
to toggle the class hidden
on the taskForm
and set currentTask
to an empty object. That’s because at this point, currentTask
will be filled with the task the user might have added.
Your code so far
WARNING
The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.
You will need to take an additional step here so the code you wrote presents in an easy to read format.
Please copy/paste all the editor code showing in the challenge from where you just linked.
const reset = () => {
titleInput.value = "";
dateInput.value = "";
descriptionInput.value = "";
taskFrom.classList.toggle("hidden");
currentTask = {};
};
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Safari/605.1.15
Challenge Information:
Learn localStorage by Building a Todo App - Step 25