JavaScript DOM Scripting By Example Editing and Filtering Names Moving to an Editing State

Dilip Agheda
Dilip Agheda
Full Stack JavaScript Techdegree Graduate 28,573 Points

Bug in the video and project files

in the attached project files, go to 4 - removing names and 'start' folder. locate app.js and note this listener code. Note that argument e is not used but rather 'event' is used. I believe, should be

ul.addEventListener('change', (e) => { const checkbox =; //This should be const checked = checkbox.checked; const listItem = checkbox.parentNode.parentNode;

if (checked) { listItem.className = 'responded'; } else { listItem.className = ''; } });

1 Answer