Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function handleNewItemSubmit() {
- // this function will be responsible for when users add a new shopping list item
- //1) Check to see if the item is already included in the list
- // 2) if true, then add the item to the list
- // 3) and call render the shopping list again
- }
- function handleItemCheckClicked() {
- // this function will be responsible for when users click the "check" button on
- // a shopping list item.
- //1) Acess the list element selected and toggle or switch the state of it being "checked"
- }
- function handleDeleteItemClicked() {
- // this function will be responsible for when users want to delete a shopping list
- // item
- //1) Check to see if the item is included in the list
- //2) if true, then delete the item from the list
- //3) and call render the shopping list again
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement