JavaScript

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.

Do Us a Favor:
  • Digg
  • Reddit
  • Facebook
  • del.icio.us
  • Mixx
  • StumbleUpon

Tags: , ,

Leave a Reply

You must be logged in to post a comment.