Joke Teller
<script>
//Joke Teller
//Julio Maravilla
//October 10, 2007
var correct= "TO GET TO THE OTHER SIDE";
var guess;
while(guess!= correct)
{
guess=prompt("Why did the Chicken cross the road?", "");
guess=guess.toUpperCase();
if (guess==correct)
{
alert("Pretty funny, huh?");
}
else
{
alert("Thats not it...");
}
}
</script>
|
|