File tree Expand file tree Collapse file tree
1-js/05-data-types/04-array/2-create-array Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,19 +6,11 @@ importance: 5
66
77배열과 관련된 다섯 가지 연산을 해봅시다.
88
9- <<<<<<< HEAD
1091 . 요소 "Jazz", "Blues"가 있는 ` styles ` 배열을 생성합니다.
11102 . "Rock-n-Roll"을 배열 끝에 추가합니다.
12113 . 배열 정 중앙에 있는 요소를 "Classics"로 바꿉니다. 가운데 요소를 찾는 코드는 요소가 홀수 개인 배열에서도 잘 작동해야 합니다.
13124 . 배열의 첫 번째 요소를 꺼내서 출력합니다.
14135 . "Rap"과 "Reggae"를 배열의 앞에 추가합니다.
15- =======
16- 1 . Create an array ` styles ` with items "Jazz" and "Blues".
17- 2 . Append "Rock-n-Roll" to the end.
18- 3 . Replace the value in the middle with "Classics". Your code for finding the middle value should work for any arrays with odd length.
19- 4 . Strip off the first value of the array and show it.
20- 5 . Prepend ` Rap ` and ` Reggae ` to the array.
21- >>>>>>> upstream/master
2214
2315단계를 하나씩 거칠 때마다 배열 모습은 아래와 같이 변해야 합니다.
2416
You can’t perform that action at this time.
0 commit comments