newline in js code example
Example 1: new line in js
document.write("\n");
//second method for html page
document.write("<br>");
Example 2: how to go to next line in javascript
document.write("\n");
Example 3: new line javascript
console.log('Hello \n World');