JavaScript Line Break
//in JavaScript, you can declare a line break (or new line)
//with the \n character.
var linebreak = '\n';
Dr. Hippo
//in JavaScript, you can declare a line break (or new line)
//with the \n character.
var linebreak = '\n';
<html>
<body>
<script>
<!--
document.write("Hello World!");
document.write("<br>");
document.write("Demo<br><br>Text!");
//-->
</script>
</body>
</html>
var linebreak = '\n';
res.write("\n");
let str = "Hello World!\nThis is my string";
console.log(str);