In his lab #6 the objective was to have a code that would say the day of the week. For this we used "switch" and the function .getDay. This command would get the day of the week from the computer that the user is using and would display it on that webpage. For this lab we also used the document.write function which lets us write text on the webpage. After the text "Today Is" is displayed the computer gets the day of the week from the computer and displays it in a sentence. This lab wasn't that hard but it was a good function to learn because it can be useful in future labs and projects.
After completing the lab we had to upload it to the server using DreamWeaver CS6. I had to add headings that displayed my name and class. For this lab we used the script tag in order to incorporate Javascript into it and make everything work. This lab wasn't that complicated even though the code was pretty long for just one word that got the day of the week.


No comments:
Post a Comment