+ 5

How do I add Line Break in JavaScript?

//For Example var My_Name="Shehzad"; var My_Age=15; document.write(My_Name); document.write(My_Age); //Output=Shehzad15 /*How can I convert this into Shehzad 15 */

22nd Jul 2017, 8:31 AM
Shehzad
Shehzad - avatar
1 Answer
+ 13
document.write("<br>"); //line break....
22nd Jul 2017, 8:32 AM
Valen.H. ~
Valen.H. ~ - avatar