javascript join array to string with new line code example Example: array join javascript new line lines.join("\r\n");