CSCI 121 - Lecture 12 Sample

Function Example - swapText

You can change this text by entering new text in the text box below and then clicking the 'Swap Text' button."

     

If Else Example - guessColor

Enter a color and click 'Guess Color' to see if it is the one I am thinking of.

  

Else If Example - hiLo

Enter a number guess between 0 and 100 below and click the 'Guess Number' button.

  

Switch Example - dayName

Click button below if you are really out of touch: