# Removing a task from a checklist in JavaScript

Let's now implement the removal of tasks from the list. To do this, hang an event to `span` to delete:

`let remove = document.createElement('span'); remove.classList.add('remove'); remove.textContent = 'remove'; remove.addEventListener('click', function() { // here will be code to remove li tag from ul list }); li.appendChild(remove);`

Add the missing part of the code to solve the described problem.

← →
↑
en ru