Build a Todo App using Local Storage - Step 9

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:

  1. You should use arrow syntax to set your event listener to an empty pair of curly braces.
  2. 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

The instructions are a little wonky. The tests are looking for an empty set of parentheses in that arrow function. Fix that and it should pass.

thanks for your time and your help,
but i think it should be pass even if i did not remove the white spaces and the empty lines
it’s been so strict