Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PROJECT CONTRIBUTIONS ARE ALLOWED AND WELCOMED. Follow the guidelines as outlined below!
Description
The constants 'handleEdit' and 'handleRemove' were implemented using ES6 findIndex and filter functions respectively. The HTML code has been updated to include a 'Save' button which is used to save the edited array to local storage. For usability purposes the constants 'toggleEditMode' and 'handleEditFieldChange' were also implemented.
Related Issue / Asana Task
Motivation and Context
The change enables the application to edit and delete tasks that have been added.
How Has This Been Tested?
The changes were tested by manually inputting dummy data and calling the functions through the use of buttons. They were tracked through inspection using the console on the web page.
Screenshots (if appropriate):