Open HelloMihai opened 3 years ago
A new Dropdown Options list was created building an array with objects. The sorting is based on the value of a property every object has
https://github.com/MarcelHarabagiu/Todo-list/blob/b82b3ed6b816b40375b0086c1e2f9198c5aae5a0/app.js#L7-L25 and https://github.com/MarcelHarabagiu/Todo-list/blob/b82b3ed6b816b40375b0086c1e2f9198c5aae5a0/app.js#L69-L73
populate the
index.html
dropdown list from an array you create inapp.js
this should not be hardcoded in html file https://github.com/MarcelHarabagiu/Todo-list/blob/455056cccdde017e51ac5e47f3df53b5a10739e9/index.html#L27-L29