You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first button should add an list item element to the newly created list
The second button should remove a list item from the list
Make an event that listens for a click on one of the list items and when that event happens something updates (example: the background color updates) using .classList.add and .classList.remove
Notes
Please use addEventListener instead of onclick. We will use onclick later in the course.
<body>
element<body>
element.classList.add
and.classList.remove
Notes
addEventListener
instead ofonclick
. We will useonclick
later in the course.References
classList
The text was updated successfully, but these errors were encountered: