tiagomarin / My-To-Do-List

This app allows you to create a to-do-list where you can add remove and reorder items
MIT License
4 stars 1 forks source link

add functionallities add, remove & edit tasks #1

Closed tiagomarin closed 2 years ago

tiagomarin commented 2 years ago

In this pull request I added some functionality to the application:

Implement a function for adding a new task (add a new element to the array). Implement a function for deleting a task (remove an element from the array). Implement a function for editing task descriptions. By default new tasks have the property completed set to false and the property index set to the value of the new array length (i.e. adding a 5th task to the list, the index of that task is equal to 5). Deleting a task should update all remaining items' indexes, so they represent the current list order and are unique(i.e. deleting the first task index 1 from the list, the index of the next task(2) is set to 1).. All changes to the To Do List are saved in local storage.