add a new line in .text() in javascript code example Example: new line with javascript write res.write("\n");