how to handle a string with new line in javascript code example Example: new line with javascript write res.write("\n");