0

alternative to "<br />"

i want to add space in document.write. Im new here. So, what alterntive can be used to make a space either than <br /> (this is called bracket right?) function person(name, age, color) { this.name = name; this.age = age; this.favColor = color; } var p1 = new person("John", 42, "green"); var p2 = new person("Amy", 21, "red"); document.write(p1.age + "<br />"); document.write(p2.name); SoloLearn doesnt make the test yourself code with <br />. So, i do on my own.

8th Oct 2018, 7:10 AM
Zulfadhli
Zulfadhli - avatar
2 ответов