Make your own free website on Tripod.com
 
Home
ActionScript
Blog

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Joke Teller

<script>
// Joke Teller
// Catherine Casuat 10-10-07
// Demonstrates the while loop

var correct = "to get to the other side";
var guess = "";
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>