Skip to content

Commit 6d63953

Browse files
committed
Add method concat
1 parent b4c5e78 commit 6d63953

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app5.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const arr1 = [1,2,3];
2+
const arr2 = [10,20,30];
3+
4+
const arr3 = arr1.concat(arr2);
5+
6+
console.log(arr3) // [1,2,3,10,20,30]
7+

0 commit comments

Comments
 (0)