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

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

High Or Low

<script>
// highOrLow
// Catherine Casuat 10/2/07
// Demonstrates the if-/-else structure

var temp = 0;
var perfectTemp = ??;

temp = Math.floor(Math.random() * 100) + 1;
alert ("It's " + temp + " degrees outside.");

if (temp < perfectTem){

alert("It's cold!!");

} else {
alert("It's hot!!");
} // end if

</script>