next line in string in java with javcascript code example Example: new line with javascript write res.write("\n");