You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: week-3/todo-list/script.js
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,8 @@
1
-
// These are the same todos that currently display in the HTML
2
-
// You will want to remove the ones in the current HTML after you have created them using JavaScript
3
1
lettodos=[
4
2
{task: "Wash the dishes",completed: false},
5
3
{task: "Do the shopping",completed: false},
6
4
];
7
5
8
-
// This function will take the value of the input field and add it as a new todo to the bottom of the todo list. These new todos will need the completed and delete buttons adding like normal.
// Advanced challenge: Write a fucntion that checks the todos in the todo list and deletes the completed ones (we can check which ones are completed by seeing if they have the line-through styling applied or not).
0 commit comments