We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2601ab9 commit 8a57881Copy full SHA for 8a57881
1 file changed
book/공희재/chapter_15.md
@@ -102,7 +102,7 @@ let foo;
102
그러나 `let`으로 선언한 변수는 이 두 단계를 분리한다.<br>
103
즉, 런타임 이전에 암묵적으로 선언 단계를 먼저 실행하지만, **초기화 단계는 변수 선언문에 도달했을 때 실행**한다.
104
105
-
+<img width="400px" src="https://github.com/user-attachments/assets/b4a430e9-0b5e-4b26-bb66-58bdcd7a2a9b" />
106
107
만약 초기화 단계에 다다르기 전에 변수에 접근하려고 하면 `ReferenceError`가 발생한다.<br>
108
왜냐하면 `let`으로 선언한 변수는 스코프의 시작 지점부터 변수 선언문까지 변수를 참조할 수 없기 때문이다.<br>
0 commit comments