how to make my delete function/button work in javascript (todo list project)

Hello, for some reason i cant get my delete function to work. I need to delete each list anytime the delete button is clicked but the delete function doesn’t even register the button clicked. I’ve done everything possible but nothing is working.

The add list function is the “addBtn” function.
The delete function is the “iconBtn” function.

I’ve tried putting the iconBtn function inside and outside the addBtn function but it still doesnt log the “button clicked” to the console like I specified

Please help. I added the codepen below.


CODE:

https://codepen.io/Godswill-Obi-ndaji/pen/oNJYwmQ
Was this page helpful?