Skip to content

Commit f5b73fe

Browse files
[나머지 매개변수와 스프레드 문법] fix typo on alert
1 parent 741ed25 commit f5b73fe

File tree

1 file changed

+2
-2
lines changed
  • 1-js/06-advanced-functions/02-rest-parameters-spread

1 file changed

+2
-2
lines changed

1-js/06-advanced-functions/02-rest-parameters-spread/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ function showName(firstName, lastName, ...titles) {
5353

5454
// 나머지 인수들은 배열 titles의 요소가 됩니다.
5555
// titles = ["Software Engineer", "Researcher"]
56-
alert( titles[0] ); // Bora
57-
alert( titles[1] ); // Lee
56+
alert( titles[0] ); // Software Engineer
57+
alert( titles[1] ); // Researcher
5858
alert( titles.length ); // 2
5959
}
6060

0 commit comments

Comments
 (0)