Skip to content

Commit 4c5b31c

Browse files
authored
Update script.js
1 parent 79e218a commit 4c5b31c

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
@@ -1,5 +1,5 @@
11
const heading = document.getElementById("heading");
2-
const button = document.getElementById("button");
2+
const button = document.getElementById("click");
33

44
const originalText = heading.textContent;
55
const newtext = "Updated!";
@@ -22,3 +22,4 @@ button.addEventListener("click", () => {
2222
}
2323

2424
});
25+

0 commit comments

Comments
 (0)