logo  logoword               
 
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Miscellaneous
<script>
//Joke Teller
//by Norman Duong
//10-10-07
//demonstrates the while loop

var correct="to get to the other side";
var guess="";
alert("When answering the joke, put all letters in lower case.... or else");
while(guess!=correct){
guess=prompt("Why did the chicken cross the road?","");
if(guess==correct){
alert("Pretty funny, huh?");
}else{
alert("That's not it...");
}//end if
}//end while
</script>

Joke Teller


 

Class Links

Suggestions

Computer Science

David

Julio

Huy

Gordon

Titus

The unused webpage