M-Anwar-Hussaini/To-Do-List

Clean code issues:

Closed this issue · 0 comments

DRY:

  • In the main.js file line 52, there is used normal traditional for loop for the array. You could use the forEach method.
  • the createElement(task, index) method have several functionalities, which means it works more than one, it would be better to change them to have only one functionality.