Created
November 18, 2020 21:06
-
-
Save KevDev90/ce24478a1b2ae78c8f0bce4ce27512eb to your computer and use it in GitHub Desktop.
Shopping List User Stories
This file contains hidden or 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
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