Created
January 19, 2019 03:03
-
-
Save secilreel/cc1e27e5fa28a93163adebc40caeea74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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