how to break line in string in javascript code example
Example 1: line break in js
<html>
<body>
<script>
<!--
document.write("Hello World!");
document.write("<br>");
document.write("Demo<br><br>Text!");
//-->
</script>
</body>
</html>
Example 2: line break in js
var linebreak = '\n';