Skip to content

Commit 8ad30e7

Browse files
authored
Create README.md
1 parent b98701c commit 8ad30e7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Task 02 – Toggle Button Text
2+
3+
## ✅ Objective:
4+
Change the button text from "Start" to "Stop" and toggle it back on each click.
5+
6+
## 💡 Concepts Practiced:
7+
- Event listeners for buttons
8+
- Conditional logic to toggle text
9+
- DOM manipulation
10+
11+
## 📘 What I Learned:
12+
- How to handle dynamic text changes on the button itself.
13+
- Better understanding of click events and conditions.
14+
15+
## ▶️ Example Flow:
16+
1. Initial button text: “Start”
17+
2. Click → changes to: “Stop”
18+
3. Click again → back to: “Start”

0 commit comments

Comments
 (0)