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

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Project Two

<script>
//Demonstrates addition
//Catherine Casuat

var num = 0;
var numTwo = 0;

num = prompt("Give me one number.");
numTwo = prompt("Give me another number to add to " + num + ".");

num = eval(num);
numTwo = eval(numTwo);

var total = num + numTwo;

alert("It is " + total);

</script>