javascript new lines in string code example
Example 1: new line javascript
console.log('Hello \n World');
Example 2: newline in javascript
document.getElementById("h1").innerHTML= "Just put a <br> tag in between the string!";
console.log('Hello \n World');
document.getElementById("h1").innerHTML= "Just put a <br> tag in between the string!";