0

How to use \n in JS?

20th Jun 2019, 4:38 PM
Xle6yWek
Xle6yWek - avatar
3 Answers
+ 1
If \n doesn't work, try <br />.
20th Jun 2019, 6:47 PM
Seb TheS
Seb TheS - avatar
0
\n is commonly used in alerts or in modifying innerHTML or innerText. It signifies a line break.
20th Jun 2019, 4:45 PM
YoBoi
0
That only works in innerHTML
21st Jun 2019, 2:20 AM
YoBoi