Tell us what’s happening:
here i did what it required and i see the results when i click the button myslef but i still can’t pass,
in the console it says i should use arrow function syntax bla bla bla ??!!
here are the failing tests on the console messages:
- You should use arrow syntax to set your event listener to an empty pair of curly braces.
- Your event listener should use the
close()
method on
confirmCloseDialog
. 5. Your event listener should use
classList
to toggle the class
hidden
on
taskForm
.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
discardBtn.addEventListener('click', (e) => {
confirmCloseDialog.close()
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/142.0.0.0 Safari/537.36
Challenge Information:
Build a Todo App using Local Storage - Step 9