Learn localStorage by Building a Todo App - Step 35

Tell us what’s happening:

this code says there is something wrong can you help me understand where exactly because i cant

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

  confirmCloseDialog.showModal();
  if (formInputsContainValues) {
    confirmCloseDialog.showModal();
} else {
    taskForm.reset();
    taskForm.classList.toggle('hidden');
}



// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 35

only reset, you are not asked to change the classList

also, is reset a method on taskForm or a standalone function?

1 Like