Skip to content

Commit 269cc80

Browse files
authored
「DOM」の節のgetElementByIdのサンプルプログラムのタイポを修正 (#924)
1 parent 57393f1 commit 269cc80

File tree

1 file changed

+2
-2
lines changed
  • docs/1-trial-session/13-dom/_samples/get-element-by-id

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
const element = document.getElementById("greeting");
2-
element.textContent = "Hello DOM";
1+
const greetingElement = document.getElementById("greeting");
2+
greetingElement.textContent = "Hello DOM";

0 commit comments

Comments
 (0)