We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c31eda commit 7d6a7d7Copy full SHA for 7d6a7d7
1 file changed
task05-change-style-on-click/script.js
@@ -8,7 +8,7 @@ let isUpdated = false;
8
button.addEventListener("click", () => {
9
if (!isUpdated) {
10
heading.textContent = newtext;
11
- heading.style.backgroundColor = "white";
+ heading.style.backgroundColor = "red";
12
heading.style.color = "black";
13
button.textContent = "Click to Revert";
14
isUpdated = true;
@@ -20,4 +20,5 @@ button.addEventListener("click", () => {
20
button.textContent = "Click to Change";
21
isUpdated = false;
22
}
23
-});
+
24
+});
0 commit comments