Skip to content

Instantly share code, notes, and snippets.

@KevDev90
Created November 18, 2020 21:06
Show Gist options
  • Save KevDev90/ce24478a1b2ae78c8f0bce4ce27512eb to your computer and use it in GitHub Desktop.
Save KevDev90/ce24478a1b2ae78c8f0bce4ce27512eb to your computer and use it in GitHub Desktop.
Shopping List User Stories
addItems()-
// event listener on the shopping list form
// on submit event.preventdefault
// find the new shopping list entry and save the value to a variable, itemName
// append a new li card to the shopping list
// interpolate the itemName in the li
toggleCheckedItems()-
// event listener on the toggle button
// on click find the closest li to that click
// toggle the class of that item to show checked/unchecked
deleteItems()-
// event listener on the delete button
// on click find the closest li to that click
// remove that li
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment