+ 5
Why dont work "\n" in javascript.
I maked a projekt, but I looked I cant write the text with"\n" why?
3 Respostas
+ 7
When you’re using document.write, because it’s writing to the document as HTML, a new line should be <br/> instead of \n.
+ 6
Your question is not clear but if you mean why "\n" is not visible as text in js then it is because it is newline character i.e it can be used to get an similar effect as html <br> tag.
0
\n creates a new line. It dosen't show on screen.
if that wasn't what you were looking for, I'm sorry.