New course! Every coder should learn Generative AI!
Try a free lesson0
\n is not working in document.write("Hello\nworld")
2 Answers
+ 5
You may use <br/> instead. as
document.write("Hello<br/> world");
0
his right you cant use \n in document.write you have to put <br/> instead