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

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Project four

<script>
//Determines user's lucky number by shoe size and name
//Catherine Casuat 09/26

var firstName = "";
var numLetters = 0;
var shoeSize = 0;

firstName= prompt("Hi, what's your first name?", "");
numLetters = firstName.length;
alert ("You have " + numLetters + " letters in your name!")

shoeSize = prompt("What is your shoe size?");
shoeSize = eval(shoeSize)
numLetters = eval(numLetters)

var total = shoeSize * numLetters
alert ("Your lucky number is " + total);

</script>