Skip to content

Commit f875bb4

Browse files
authored
Create README.md
1 parent 91ef7f8 commit f875bb4

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)