Work with legacy and simple sites using jQuery selectors, events, AJAX, effects, and plugins.
Lessons
Delete elements or clear their contents.
remove() and empty() is easiest to learn by reading the example, changing it, and observing the result.
$('.done').remove(); // delete elements
$('#list').empty(); // clear children
const copy = $('#card').clone(true); // copy with handlers
$('#container').append(copy);
$('#old').replaceWith('<div id="new">Replaced</div>');Practice the remove() and empty() example in a small scratch file, then explain what changed and why.