Skip to content

Commit 5066c13

Browse files
committed
エラーになる行をコメントアウトしない
1 parent 37c6674 commit 5066c13

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

docs/1-trial-session/09-functions/index.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ function greet() {
127127

128128
greet(); // ようこそ、田中のブログへ! と表示される
129129

130-
// これはエラーになる
131-
// document.write(siteName);
130+
document.write(siteName); // これはエラーになる (Uncaught ReferenceError: siteName is not defined)
132131
```
133132

134133
一方で、<Term>関数</Term>の外側で宣言された<Term>変数</Term>を<Term>関数</Term>の内側から利用することは可能です。

0 commit comments

Comments
 (0)