We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getElementById
1 parent 57393f1 commit 269cc80Copy full SHA for 269cc80
1 file changed
docs/1-trial-session/13-dom/_samples/get-element-by-id/script.js
@@ -1,2 +1,2 @@
1
-const element = document.getElementById("greeting");
2
-element.textContent = "Hello DOM";
+const greetingElement = document.getElementById("greeting");
+greetingElement.textContent = "Hello DOM";
0 commit comments