0 points

.join() using delimiters


dashboard

Tue Aug 04 2020 19:23:59 GMT+0000 (UTC)

Posted by @ludaley #javascript #array-methods

[1, 2, 3].join('my separator');
// "1my separator2my separator3"

[1, 2, 3].join(',');
// "1,2,3"

[1, 2, 3].join(', ');
// "1, 2, 3"

[1, 2, 3].join('sandwich');
// "1sandwich2sandwich3"
content_copy Copy

https://www.freecodecamp.org/news/freecodecamp-palindrome-checker-walkthrough/