Created
December 10, 2019 04:08
-
-
Save amrvitale/22bc85a1936e7237996e49c23cd29d03 to your computer and use it in GitHub Desktop.
Shopping List Pseudocode for 3 Remaining User Stories: Add Items, Check/Uncheck Items, Delete Items
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 handleNewItemSubmit() { | |
// this function will be responsible for when users add a new shopping list item | |
//AB: For each item added in STORE, generate a string representing an <li> with | |
--the item name | |
-- check button | |
-- delete button | |
console.log('`handleNewItemSubmit` ran'); | |
} | |
function handleItemCheckClicked() { | |
// this function will be responsible for when users click the "check" button on | |
// a shopping list item. | |
//AB: For each item already in STORE, upon clicking, determine | |
--if button is already checked, remove underline | |
--if button is not already checked, add underline | |
console.log('`handleItemCheckClicked` ran'); | |
} | |
function handleDeleteItemClicked() { | |
// this function will be responsible for when users want to delete a shopping list | |
// item | |
//AB: For each item already in STORE, upon clicking Delete button, remove item from DOM | |
console.log('`handleDeleteItemClicked` ran') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment