Skip to content

Commit 5977494

Browse files
authored
Update script.js
1 parent 9bb8569 commit 5977494

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

task05-change-style-on-click/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ button.addEventListener("click", () => {
99
if (!isUpdated) {
1010
heading.textContent = newtext;
1111
heading.style.backgroundColor = "red";
12-
heading.style.color = "black";
12+
heading.style.color = "white";
1313
button.textContent = "Click to Revert";
1414
isUpdated = true;
1515
}
@@ -24,3 +24,4 @@ button.addEventListener("click", () => {
2424
});
2525

2626

27+

0 commit comments

Comments
 (0)