Skip to content

Commit b98701c

Browse files
authored
Create README.md
1 parent 8554852 commit b98701c

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Task 01 – Change and Revert Heading
2+
3+
## ✅ Objective:
4+
Change the heading text on a button click and revert it back when clicked again.
5+
6+
## 💡 Concepts Practiced:
7+
- DOM selection using `getElementById`
8+
- `textContent` manipulation
9+
- Toggling logic using conditionals
10+
- Button click event
11+
12+
## 📘 What I Learned:
13+
- How to change text dynamically using JavaScript.
14+
- How to implement toggle functionality with a single button.
15+
16+
## ▶️ Example Flow:
17+
1. Initial heading: “Original Text”
18+
2. Click button → heading becomes: “Hello World!”
19+
3. Click again → heading returns to: “Original Text”

0 commit comments

Comments
 (0)