whatsthecodeforthat.com

What's the code for Joining an Array to String in javascript?

// Joins elements with a comma-separator by default
var str = arr.join(); 

// Optionally specify the separator
var str = arr.join('\n');