Posts Tagged ‘stuff’

JavaScript

Friday, February 8th, 2008

document.write();

document.writeln();

The differences are actually quite simple.  So simple in fact, you can just go to w3schools and look it up…which is exactly what had to be done when I was asking a couple of veteran programmers what the difference between the two are. Funny thing, the only reason I didn’t know is because the book I’m using for my programming class SUCKS!

So what is the purpose of adding ln to document.write ?? All it does is create a new line after each expression.

Have a good day.