Solution: The Main Event
Review solutions to the tasks from the main event challenge.
We'll cover the following...
Solution 1
Here is a possible solution for implementing the removeTask
function:
Explanation
- Line 15: The function
removeTask()
takes an event objecte
as a parameter which is automatically passed on click event. - Line 16:
e.target.remove()