Friday, October 9, 2015

Lab 6

Tenzing Younten
Web Client Programming


Previously I used "if and else" statement. But for this lab I'm using "switch" statements for many conditions. With the use of switch statements, I was able to identify different actions accomplished based on different conditions. The goal of this lab was to create a webpage which presented the current day. I began by listing all of the seven days in a week. Then, I used "document.getElementById" to add the sentence, "Today is ", so that I could insert '+ day" after the phrase to complete the sentence depending on what day it is.

As a result of this lab, I learned what a switch statement is and what it does. Also, learned how they can be used in html for a webpage to work. This is relevant to Web Design as it allows us, Web Designers to include multiple actions to be executed for different conditions by using this statement. This skills can be useful for my future labs and projects, and work as well.






No comments:

Post a Comment