Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

write new line in javascript

<script>
document.write("Have a nice day!");
document.write("<br>");
document.write("Thank You.");

//OR
document.write("Have a nice day! <br>Thank You.");

//OR
document.write("Have a nice day! <br>");
document.write("Thank You.");

//OR
document.writeln("Hello World!");
document.writeln("Have a nice day!");

</script>
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #write #line #javascript
ADD COMMENT
Topic
Name
4+5 =