document.write:
document.writeln:
I don't see any difference between the two when I use a single script to write my name.
However when I create multiple scripts, enclosed in <PRE> tags, this happens:
document.write (repeated):
document.writeln (repeated):
When I create multiple scripts, without the <PRE> tags, this happens:
document.write (repeated):
document.write ("repeated - with extra white space before final quotes "):
document.writeln (repeated):
This demonstrates the appending of a newline character to the end of the
document.writeln("VALUE"), while the document.write("VALUE")
doesn't have the newline character added.