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

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Project 1

<script>
//Arranges names in different orders
//Catherine Casuat 09/26

var firstName = "";
var lastName = "";
var middleInitial = "";

firstName = prompt("Hi! What's your first name?");
alert("I see, " + firstName + "!");

lastName = prompt("What's your last name, " + firstName + "?");
alert("Ah, so you're " + firstName + " " + lastName + "." + " " + "Awesome!");

middleInitial = prompt("And what might your middle initial be?");
alert("Cool. So you're, " + lastName + " " + firstName + " " + middleInitial + ".!");
alert("Oops. I meant, " + firstName + " " + middleInitial + ". " + lastName + "!");

</script>