Remove the existing code toggling the class of hidden on taskForm taskForm.classList.toggle("hidden");
This code is toggling (applying or removing) the “hidden” class on the taskForm element.
What you’ve done is you’ve replaced the classname “hidden” with a class named “reset”. If what that code does is toggle a class called “hidden”, then replacing that with any other word is going to toggle a class of that word.
… and call the reset function instead.
What they are asking of you is to call a function called reset ( not toggle a class called reset ).
At this point it is absolutely necessary that you understand these 2 concepts:
Calling an element’s method (function)
Toggling a class on an element with the .toggle() function
Hint: Since ‘toggle’ is the function you are currently calling on your form element, it is not the string you pass to toggle but the toggle function itself that need to be replaced.
Use the Mozilla MDN web docs in the future to read up on each new thing you encounter. This is just good practice: