Chapter Two Sample
<script>
//Catherine Casuat
//10-2-07
var userName="";
var rightAnswer="say cheese";
userName=prompt("When in doubt....");
if(userName==rightAnswer)
{
alert("You pwn!");
}
else if(userName=="I don't know.")
{
alert("You suck.");
}
else
{
alert("Figure it out!");
}
alert("Thanks for playing!");
</script>