0

How do we break a line in JavaScript

In HTML <br/> is an inline tag that helps us to begin a new line within a paragraph. How do we break a line in JavaScript?

28th Aug 2020, 6:12 PM
Michael Tesfay
Michael Tesfay - avatar
2 Respuestas
+ 2
Michael Tesfay , you can use newline character \n or <br/>.
28th Aug 2020, 6:24 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 2
Thank you so much for the quick answer.
28th Aug 2020, 6:25 PM
Michael Tesfay
Michael Tesfay - avatar