We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91ef7f8 commit f875bb4Copy full SHA for f875bb4
1 file changed
task12-mark-list-as-completed/README.md
@@ -0,0 +1,17 @@
1
+# Task 12 – Mark List as Completed
2
+
3
+## ✅ Objective:
4
+Add a "completed" visual class to a task when it's clicked, and allow toggling it back.
5
6
+## 💡 Concepts Practiced:
7
+- `classList.toggle`
8
+- Adding event listeners to dynamic list items
9
10
+## 📘 What I Learned:
11
+- How to add and toggle class on dynamic elements.
12
+- Creating a visual difference between completed and active tasks.
13
14
+## ▶️ Example Flow:
15
+1. Click on task “Clean Room”.
16
+2. Task gets line-through and turns gray.
17
+3. Click again → returns to normal.
0 commit comments