Skip to content

Commit 1823cd0

Browse files
committed
Add method join
1 parent aaac41e commit 1823cd0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

app9.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const arrName = ['Andrii','Roma','Dima'];
2+
const stringName = arrName.slice();
3+
4+
console.log(arrName); // ['Andrii','Roma','Dima']
5+
console.log(stringName.join()); // Andrii,Roma,Dima
6+
console.log(stringName.join('')) // AndriiRomaDima
7+
console.log(stringName.join(' ')) // Andrii Roma Dima
8+
9+

0 commit comments

Comments
 (0)