Skip to content

Commit 9ae985e

Browse files
committed
[충돌해결]Part1 5.4 배열 생성
1 parent a0e5321 commit 9ae985e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • 1-js/05-data-types/04-array/2-create-array

1-js/05-data-types/04-array/2-create-array/task.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,11 @@ importance: 5
66

77
배열과 관련된 다섯 가지 연산을 해봅시다.
88

9-
<<<<<<< HEAD
109
1. 요소 "Jazz", "Blues"가 있는 `styles` 배열을 생성합니다.
1110
2. "Rock-n-Roll"을 배열 끝에 추가합니다.
1211
3. 배열 정 중앙에 있는 요소를 "Classics"로 바꿉니다. 가운데 요소를 찾는 코드는 요소가 홀수 개인 배열에서도 잘 작동해야 합니다.
1312
4. 배열의 첫 번째 요소를 꺼내서 출력합니다.
1413
5. "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

0 commit comments

Comments
 (0)