0

How do you document.write on multiple lines in javascript?

The equivalent of this in python is \n

7th Apr 2019, 3:44 PM
TIB
4 ответов
+ 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.
7th Apr 2019, 3:54 PM
Ipang
+ 1
You're welcome. Please, you really need to remove SoloLearn, Python & CSS from relevant tags, the question was about JavaScript after all.
7th Apr 2019, 4:19 PM
Ipang
0
Thx
7th Apr 2019, 4:11 PM
TIB
0
Very useful
7th Apr 2019, 4:11 PM
TIB