We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8554852 commit b98701cCopy full SHA for b98701c
1 file changed
task01-change-and-revert-heading/README.md
@@ -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