newline in javascript code example
Example 1: new line in js
document.write("\n");
//second method for html page
document.write("<br>");
Example 2: new line javascript
console.log('Hello \n World');
Example 3: newline in javascript
document.getElementById("h1").innerHTML= "Just put a <br> tag in between the string!";