Skip to content

Instantly share code, notes, and snippets.

@secilreel
Created January 19, 2019 03:03
Show Gist options
  • Save secilreel/cc1e27e5fa28a93163adebc40caeea74 to your computer and use it in GitHub Desktop.
Save secilreel/cc1e27e5fa28a93163adebc40caeea74 to your computer and use it in GitHub Desktop.
function addItems ()
listen to the user input
takes the value typed
stores it in not DOM but an array, or object
and adds it into the shopping list item
function checkToggleItems()
listens to the check button (on the parent div)
checks whether the item has been checked or unchecked
changes the checked attribute to otherwise
function deleteItems()
listens to the delete button (on the parent div)
takes the item out of the shopping list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment