0
How do you document.write on multiple lines in javascript?
The equivalent of this in python is \n
4 Answers
+ 2
You can print on different lines by inserting <br /> in between lines, as follows:
document.write("First line<br />Second line.");
Output:
First line
Second line.
+ 1
You're welcome.
Please, you really need to remove SoloLearn, Python & CSS from relevant tags, the question was about JavaScript after all.
0
Thx
0
Very useful