Learn localStorage by Building a Todo App - Step 43

Tell us what’s happening:

can’t figure out where I need to put my remove() method without changing the dataArrIndex

Your code so far

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

/* file: styles.css */

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

 const deleteTask = (buttonEl) => {
  const dataArrIndex = taskData.findIndex(
    (item) => item.id === buttonEl.parentElement.id
  ).remove(parentEl).splice(1);
  
}

// User Editable Region

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/18.5 Safari/605.1.15

Challenge Information:

Learn localStorage by Building a Todo App - Step 43

Hi @4hvcv6nxzn

You should use the remove() method to remove the parent element of buttonEl .

You are not asked to chain the methods.
They need to go on separate lines.

Happy coding