Skip to content

Commit 274585f

Browse files
committed
Solve : 2번 문제 해결
1 parent d48b1d0 commit 274585f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 문제2 : 배열의 내장함수
2+
3+
<pass>부분에 배열 내장함수를 이용하여 코드를 입력하고 다음과 같이 출력되게 하세요.
4+
5+
데이터
6+
var arr = [200, 100, 300];
7+
//pass
8+
console.log(arr);
9+
10+
출력
11+
[200, 100, 10000, 300]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// # 문제2 : 배열의 내장함수
2+
3+
// <pass>부분에 배열 내장함수를 이용하여 코드를 입력하고 다음과 같이 출력되게 하세요.
4+
5+
데이터
6+
var arr = [200, 100, 300];
7+
8+
arr.splice(2, 0, 10000);
9+
// splice(start, deleteCount, item)
10+
11+
console.log(arr);
12+
13+
출력
14+
[200, 100, 10000, 300]

0 commit comments

Comments
 (0)