Skip to content

Commit b5f2ffd

Browse files
committed
slice and splice
1 parent 10a3f16 commit b5f2ffd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

array-slice.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const number1 = [33,534,24,76,89,90,06,46];
2+
console.log(number1.slice(3,5));
3+
console.log(number1.splice(3,5));

concat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const first1 = [2,4,6,7,2,3];
22
const second = [55,44,24,78,61]
3-
console.log(first1.concat(second));
3+
// console.log(first1.concat(second));

0 commit comments

Comments
 (0)