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