Assignment 2: Answer

Note! "getYear()" has been updated to "getFullYear()" because of it now being the year 2000.

     Right above is the script's effect: You get the date. If you got it to work, then you should have encountered two errors. The first should have been a syntax error claiming "...x" was not defined. The quickest way to fix the error was to erase the text. I put it in for fun.
     When you ran the script again, you should have gotten another syntax error claiming that "document.wrte" was not a function. The reason is that "write" is misspelled.

Did you get it?


Back to the Index Page