Skip to content

Commit 5ba017d

Browse files
sanghyoLeViolet-Bora-Lee
authored andcommitted
[주석 수정] 자료구조와 자료형 - 구조 분해 할당
1 parent a3beb36 commit 5ba017d

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/10-destructuring-assignment

1 file changed

+1
-1
lines changed

1-js/05-data-types/10-destructuring-assignment/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ alert(surname); // Anonymous (기본값)
190190
기본값으로 두 개의 `prompt` 함수를 할당한 예시를 살펴봅시다. 값이 제공되지 않았을 때만 함수가 호출되므로, `prompt`는 한 번만 호출됩니다.
191191

192192
```js run
193-
// surname의 prompt만 실행됨
193+
// name의 prompt만 실행됨
194194
let [surname = prompt('성을 입력하세요.'), name = prompt('이름을 입력하세요.')] = [""];
195195

196196
alert(surname); // 김 (배열에서 받아온 값)

0 commit comments

Comments
 (0)