Learn localStorage by Building a Todo App - Step 25

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 taskFormand 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

it throws me this:

You should use classList to toggle the class hidden on taskForm

A little misspell. It should be taskForm

1 Like

thank you!!, I felt so embarrassed for the misspell ggg

Please, don’t feel that way. It is normal to misspell.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.