0
Adding a html <br> between variables in JS?
I'm trying to write two variables on separate lines. I tried using <br> to move a variable to a separate line, but it didn't work? https://code.sololearn.com/Wjze6kgY0ppf/?ref=app
3 Answers
+ 1
use
var a = "one";
var b = "two";
document.write(a + "<br />" + b);
0
thank you, fixed it.
document.write(x,"<br>",y);