Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. function handleNewItemSubmit() {
  2. // this function will be responsible for when users add a new shopping list item
  3. //1) Check to see if the item is already included in the list
  4.  
  5. // 2) if true, then add the item to the list
  6.  
  7. // 3) and call render the shopping list again
  8. }
  9.  
  10. function handleItemCheckClicked() {
  11. // this function will be responsible for when users click the "check" button on
  12. // a shopping list item.
  13. //1) Acess the list element selected and toggle or switch the state of it being "checked"
  14. }
  15.  
  16. function handleDeleteItemClicked() {
  17. // this function will be responsible for when users want to delete a shopping list
  18. // item
  19. //1) Check to see if the item is included in the list
  20.  
  21. //2) if true, then delete the item from the list
  22.  
  23. //3) and call render the shopping list again
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement