DEBUGGING

Script TWO

THIS IS A TEST for debugging!





HERE IS THE CORRECTED SCRIPT

We can now see the script so it must be correct.


                  MY CORRECTIONS
birthTime = new Date("December 16, 1992 02:02:00 GMT-0500");
I added the semi-colon at the end of the above line as
well as a semi-colon for 12 additional lines

if (todaysMonth == 11) {
countMonth = 30}
else {
countMonth = 31}}}}}
I added one more bracket "}" at the end of the above line, took me
a while to find this one!

document.wrte ("Right Now It Is: " + todaysTime + " (On your computer)");
The word should be WRITE not wrte, I also closed the center tags so 
my validation would work.

I had a tough time, but I kept trying things until the 'bug' message finally went away! What a job! I also run a HTML validation so I had some idea of what line number the problem was located, sometimes this helped, not so other times. Also, I can see lots of these scripts really screw up the html validation, I am seeing message errors I have never seen before.




ON TO PART 2D

Hosted by www.Geocities.ws

1