What is the difference between JavaScript document.write and document.writeIn? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between JavaScript document.write and document.writeIn?

2nd Aug 2019, 8:33 AM
Grant Adiele
Grant Adiele - avatar
2 Answers
+ 1
In Java there are: System.out.println & System.out.print They are both used to print text, but their difference is, that println automatically adds a newline to the end.
2nd Aug 2019, 2:01 PM
Seb TheS
Seb TheS - avatar