Last active
July 17, 2019 03:35
-
-
Save Thersis94/8af3eb33e6533ae3d99bf1e46fcb9e32 to your computer and use it in GitHub Desktop.
Shopping List Pseudocode Assignment
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
| function handleNewItemSubmit() { | |
| //This function will be responsible for adding new items to our shopping list | |
| //It will take the input upon submit and create a variable to hold the input value | |
| //This will then run a function that creates a object to hold this value and push it to the store array | |
| } | |
| function handleItemCheckClicked() { | |
| //This function will be responsible for when users click the check button on a list item | |
| //It will monitor "check" for a click | |
| //It will get the ID from the current target and set its value to a variable | |
| //It will find the item in the "stored" array using the ID | |
| //It will then change the value of checked | |
| function handleDeleteItemClicked() { | |
| //This function will be responsible for when users click the delete button on a list item | |
| //It will monitor "delete" for a click | |
| //It will get the ID from the current target and set its value to a variable | |
| //It will remove the the corresponding object from the "store" array | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment