...

/

Solution: The Main Event

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 object e as a parameter which is automatically passed on click event.
  • Line 16: e.target.remove()
...