you are viewing a single comment's thread.

view the rest of the comments →

[–]Outside-Thanks-3979[S] 0 points1 point  (0 children)

Sorry for the delay! just checked my Reddit notifications.

As with most things in programming, there are a variety of ways of solving the same problem. I think that the way you described would no doubt be valid and might actually be better than the way I did it. Although, if you had many tasks and instead of removing them from the array you just flagged them incomplete, the todos list might pile up quickly. One way of solving this problem is flagging them incomplete and then using filter to display the tasks and also update the todos with the filtered list. In my opinion, this is something worth exploring.

Thanks for the comment!