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