diff options
Diffstat (limited to 'files/ko/web/javascript/reference/statements/var')
-rw-r--r-- | files/ko/web/javascript/reference/statements/var/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ko/web/javascript/reference/statements/var/index.html b/files/ko/web/javascript/reference/statements/var/index.html index 4366c3ed73..6b71309f7b 100644 --- a/files/ko/web/javascript/reference/statements/var/index.html +++ b/files/ko/web/javascript/reference/statements/var/index.html @@ -109,7 +109,7 @@ var a, b = a = "A"; console.log(x + y); // undefinedA </pre> -<p>여기, x와 y는 어떠한 코드 실행하기 전에 선언되었다, 할당은 후에 발생하였다. "<code>x = y</code>"가 실행될 때, <code>y<font face="Open Sans, Arial, sans-serif">는 존재하여 </font></code><code>ReferenceError를 출력하진 않고</code> 값은 '<code>undefined</code>' 입니다. 그래서, <code>x는</code> undefined 값이 할당 됩니다. 그리고나서, <code>y는 </code>'A' 값이 할당 됩니다. 결과적으로, 첫번째 줄 이후에, <code>x === undefined && y === 'A'</code>, 이와 같은 결과가 됩니다.</p> +<p>여기, x와 y는 어떠한 코드 실행하기 전에 선언되었다, 할당은 후에 발생하였다. "<code>x = y</code>"가 실행될 때, <code>y</code>는 존재하여 <code>ReferenceError를 출력하진 않고</code> 값은 '<code>undefined</code>' 입니다. 그래서, <code>x는</code> undefined 값이 할당 됩니다. 그리고나서, <code>y는 </code>'A' 값이 할당 됩니다. 결과적으로, 첫번째 줄 이후에, <code>x === undefined && y === 'A'</code>, 이와 같은 결과가 됩니다.</p> <h3 id="다수의_변수들의_초기화">다수의 변수들의 초기화</h3> |